This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CMSIS-USART driver clock speed

Hi, I have a project where I need to interface with a device through a serial port at 2,250,000 baud but the CMSIS usart drive won't let me as it has too large an error.

Does anyone have any ideas how I can get over this?

Also the baud rate calculator for the LPC43xx formula in UM10503 rev 1.8 page 1115 seems wrong?
With my system working at 230400 baud, my registers are:

plck = 12MHz
DLM = 5
DLL = 0
DivAddVal = 5
MulVal = 8

baud = plck/(16 x (256 x DLM +DLL) +(1 + DivAddVal/MulVal))

According to this calc I get a 360baud?
Does anyone have a correct formula or do I have something wrong.

Parents
  • Ah I see, shared registers so (I'm not going mad).
    Just came to the same conclusion on the 12Mhz, trying to find out where best to adjust it.

    I was going to run it from PLL1 what do you think?
    At 180Mhz/2.25Mhx x16 = 5 that should give me a spot on baud rate.

    I haven't used LPC's for about 3-4 years, things have changed quite a bit (including me).

    Thanks a mill for you help!

Reply
  • Ah I see, shared registers so (I'm not going mad).
    Just came to the same conclusion on the 12Mhz, trying to find out where best to adjust it.

    I was going to run it from PLL1 what do you think?
    At 180Mhz/2.25Mhx x16 = 5 that should give me a spot on baud rate.

    I haven't used LPC's for about 3-4 years, things have changed quite a bit (including me).

    Thanks a mill for you help!

Children