Thanks to everybody for replying to my questions.It made a small part of a large project much easier........
David
Robert Adsett <radsett@...> wrote:
At 07:26 AM 11/26/03 -0800, you wrote:
>Hi,
>Im looking for Help on the UART initialisation for the LPC, I need a BAUD
>rate of 57600 bps but cant figure out the correct values to write to the
>DLM/DLL registers...
>
>A CCLK value of 60Mhz will give a default VPB(pclk) speed of 15MHz...Yes??
>The value in the DLM/DLL registers has to be 16 time the desired baud
>rate, which gives 57600x16 = 921600. But this number is a 20 Bit Integer....
> .....11100001 00000000 0000.
>
>Please can somebody explain where my calculations are going wrong..or do I
>have to slow the processor down to get the required Baud rate???
The value in the dividers (DLM/DLL) is the value required to bring the
clock rate down to baud*16
pclk/div = 16*baud
div = pclk/(16*baud)
div = 15000000/921600 = 16.27
A divider of 16 will give you a baud rate 1.7% high which should work.
It's exactly like the 8250/16450/16550 chips. I think they just used a
16550 core from the looks of things.
Robert
" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "
Kelvin Throop, III
Yahoo! Groups SponsorADVERTISEMENT
To unsubscribe from this group, send an email to:
lpc2100-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it nowMessage
Re: [lpc2100] LPC Baud Rate Question???
2003-11-28 by David Bermingham
Attachments
- No local attachments were found for this message.