RS435 UART setup

09 Feb 2010

Hi

I am currently connecting an RS485 Driver to MBED to setup  DMX Control commands to an LED Engine.  The DMX protocol is based on the RS485 standard and implements a 11 bit packet (1 Start, 8 Data, 2 Stops) at a 250K Baud. I have currently proved my HW and a simple test program to send data out of pin13, but am now wondering if anybody has any examples of setting up the UART for RS485 to send DMX Data? 

09 Feb 2010

Try serial.format(8, Serial::None, 2). This will set 8 data bits, no parity and 2 stop bits. It seems start bit is always present.