Hello,

I am trying to work out how to use HSEROUT/HSERIN on 16F88 combined with a 75176 diff. bus tcvr chip. I want to create bi-directional, half duplex communication over a single pair.

I am stuck on how to drive the 75176 RE/DE pins to enable transmit and receive. I can join the RE and DE pins together and then connect them to an available I/O pin. Sending this pin high will put the 75176 into TX and sending it low for RX. Is there a flag I can poll to set/clear this pin based on the status of HSEROUT (i.e. high only while it is actually transmitting data). I have tried setting the pin before the HSEROUT statement and clearing it after but this doesn't work. Obviously the hardware serial is doing it's thing in the background whilst the next commands are being processed.

At this point I have confused myself and need to ask for assistance!

Regards,

Andy