lpcware

UART baudrate error with LPCOpen2

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by pgr on Tue Feb 18 03:40:23 MST 2014
Dear all,

I have migrated a project based on LPC1763 from LPCOpen 1.03 to LPCOpen 2.07 and the UART is not working at the right speed anymore.
I have checked both version source code of the "set baudrate" function and found that LPCOpen v1 was using the fractional divider but LPCOpen2 is using only the main divider.

I use a 12Mhz peripheral clock and would like a 115200bps speed, so the divider is computed to 6 that result in 125000bps speed...

Is this expected ? Why LPCOpen2 do not use fractional divider ?

Thanks in advance for your help

Outcomes