Code can be used for both rs232 and rs485 communication?

Hi,

I have done a code to open serial port for rs232 but now if I am going to change to use rs485 instead, can this code still be used?
Should be able to; the only thing you potentially need to do differently is enable/disable the 485 transmitter before and after sending (assuming your hardware does not do it for you).

Topic archived. No new replies allowed.