RS485HwSerial

Communication

Enhanced Arduino serial library with RS485 transmit enable control.
RS485HwSerial controls the transmit enable pin TE on half-duplex RS485 transceivers by utilizing the USART transmit complete interrupt USART_TXC_vect to disable the TE pin when the last stop bit was sent. Therefore the RS485 bus is only occupied as short as possible without blocking the code execution in the main loop.

Author: Frank Sautter

Maintainer: Frank Sautter

Read the documentation

Go to repository

Compatibility

This library is compatible with the avr architecture so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.

Releases

To use this library, open the Library Manager in the Arduino IDE and install it from there.