Connect TX and RX at the same pin | Cypress Semiconductor
Connect TX and RX at the same pin
Hi every body!
I'm doing a project with PSoC 1 CY8C24123A.
-My software on PC - COM cable - RS485 to COM circuit (have MAXIM232 (1 device)- MAXIM485(1 device)) - CY8C24123A board (have a SN75176B...).
A,B signal of SN75176B conect to A,B signal MAXIM485.
(I'm using RS485 standard, baudrate is 19200).
-Communication between PC and CY8C24123A via UART user module, but TX and RX connect to same pin.
-Pin P0.4 is TX and RX. I have to configure pin 0.4.
-P0.2 control SN75176B to transmit or receive data. P0.2 = 1 transmit; P0.2 = 0 receive.
- PC will send data to PSoC, after that PSoC send data to PC.
-If PSoC received 3 bytes 0xAA from PC. After that PSoC send 0xAA ,0x31, 0x00 to PC.
-If PSoC received 3 bytes 0xBB from PC. After that PSoC send 0xBB ,0x33, 0x00 to PC.
But communication is not good.
Some times, PC received data fail or receive data not truely.
I think when I switch between TX and RX at the same pin not well!
Can you tell me solutions to solve that problem?
Below is my project!