This is a RS485 class that uses the second UART and was tested on a Nucleo F030R8. A main demo program howto use the class is included. This class control the direction pin on the transceiver buffer automatically, and used transmit and receive interrupts. Ring buffers (256 bytes) are implemented on both transmission and reception. It assumes a ADM3485 'type' buffer where pins 2 ans 3 are connected and seen as direction. This test program could easily be adapted as base for other programs.

Dependencies:   mbed

History

Commit to be publised default tip

2014-11-23, by creatron [Sun, 23 Nov 2014 08:13:26 +0000] rev 11

Commit to be publised


Commit a working rs485 with the correct dir485 pin

2014-11-11, by creatron [Tue, 11 Nov 2014 21:02:06 +0000] rev 10

Commit a working rs485 with the correct dir485 pin


This version seem to work both transmit and receive

2014-11-11, by creatron [Tue, 11 Nov 2014 20:59:43 +0000] rev 9

This version seem to work both transmit and receive


Working rs485 transmitter, receiver ????

2014-11-11, by creatron [Tue, 11 Nov 2014 20:29:49 +0000] rev 8

Working rs485 transmitter, receiver ????


This version both the transmit and receive seem to operate

2014-11-11, by creatron [Tue, 11 Nov 2014 19:19:47 +0000] rev 7

This version both the transmit and receive seem to operate


Add display of the rs485 direction, seem to work

2014-11-11, by creatron [Tue, 11 Nov 2014 18:17:52 +0000] rev 6

Add display of the rs485 direction, seem to work


Rx interrupts seem to work fine, tested with 37 chars

2014-11-11, by creatron [Tue, 11 Nov 2014 17:53:16 +0000] rev 5

Rx interrupts seem to work fine, tested with 37 chars


This version interrupts on receive seem to work

2014-11-11, by creatron [Tue, 11 Nov 2014 16:43:43 +0000] rev 4

This version interrupts on receive seem to work


Commit just before attach re put back

2014-11-11, by creatron [Tue, 11 Nov 2014 16:39:29 +0000] rev 3

Commit just before attach re put back


Fix the 115200 baudrate, top bit most of the time set (baudrate to high)

2014-11-11, by creatron [Tue, 11 Nov 2014 16:16:34 +0000] rev 2

Fix the 115200 baudrate, top bit most of the time set (baudrate to high)