Hello Darin,
I am not familiar with the hardware details of the PAN4555 board, but perhaps this question can be answered more generally.
Both RS232 and RS485 communications make use of an SCI module within the MCU. Since the pins of the MCU approximate TTL switching levels, a separate interface device will always be required to generate the required drive levels, and accommodate the voltage levels associated with each type of communications interface.
RS232 communications would normally operate in "full-duplex" mode, where transmission and reception may simultaneously occur. Two separate lines handle transmit data and receive data. By contrast, RS485 communications will usually operate in "half-duplex" mode, where transmission and reception cannot occur simultaneously, since all communications will be handled by a single balanced pair connected to the interface device. Therefore, RS485 will require an additional control signal from the MCU, to determine when transmit mode is selected. The control of this pin will require additional code.
It is possible that the PAN4555 may already incorporate an RS232 interface. If so, there are two possibilities -
- If you wish to use the same SCI module as is currently used for RS232, the existing RS232 interface device will need to be disabled, in particular the external signal applied to the RX pin of the MCU. You will also need external access to both TX and RX pins, and the additional control pin, to connect to an external RS485 interface device.
- An alternative would be to use the other SCI module within the device, provided you have external access to its pins.
Regards,
Mac