UART example provides giiberish on 115K2

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Wenzu on Sat Mar 12 16:20:11 MST 2011

I have a problem when I try to run the UART0 at 115K2 baud on a stock LPCXpresso 1769.

Trying the DMA example fresh from the code example provides trash data on the UART output.
",Æ•óâ™0È‘¥ô" which in hex is "90 2C C6 C2 95 F3 E2 99 30 C8 91 A5 F4"

However, when I INIT() the UART at 57600 data is correct. "0123456789ABCDEF"

What I first notice is that there are 13 bytes in the 115K in difference to the 16 bytes correct data.

Trying the non DMA example, loopback works fine at the 57600 baud as is given in the example. However if I try to bump that up to 1152K, exactly the same gibberish appears.

So I started doubting my FTDI, but, connected to other sources at 115K2 confirmed it to operate as expected.

What could be wrong ?? The code is exactly as provided in the "mcb1700.code.bundle.lpc1769.lpcxpresso.zip"