Re: Philips LPC UART & CAN baud rates with 1 XTAL



"StanV" <jonsquire2000@xxxxxxxxxxx> wrote in message
news:1138716687.106436.115810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> Anyone some advice or experience on calculating the Xtal freq for a
> LPC22xx ARM7.
>
> I just don't find a correct value to generate stnadard UART baudrates
> (9600, 19200, 38400..) and standard CAN-bus speeds (125,250,500,1000)
>
> At this moment i have a 17.456MHz Xtal and this is working fine for the
> UART.
>
> For the CAN-bus, a multiple of 8Mhz should work fine.

I use 8MHz and 16MHz crystals in many of my designs and the baudrates
generated with that clock are close enough to the desired values. I have
never had problems up to 57600.
The largest error occurs at 8MHz and 57600, where it is 3.5% off.

Meindert


.