Ok...Let me see If I understand this because Im a bit
slow.........
pclk = 15,000,000.
Desired Baud Rate 57,600
Gives ...BAUD CLOCK = (57,600x16) = 921600
So my divider is pclk/BAUD CLOCK...
15,000,000/921600 = 16.27604
=>DLM_BAUD = 0x00;
=>DLL_BAUD = 0x10;
Yes???
Ignore decimal points??
Thanks Again,
David
--- Bill Knight <BillK@...> wrote:
> --- In lpc2100@yahoogroups.com, David Bermingham
> <crwpulsar@y...> 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 16x BAUD is the BAUD clock. To get it, you
> enter the divisor
> to get to it from the VPB(pclk) into DLM/DLL =
> 15MHz/921600 ~= 16
> As I am writing this w/o specific info on the part,
> please check
> the docs to see if the value entered is actually 16
> or 16-1.
> Different parts do it differently.
>
> Hope this helps some.
>
> -Bill Knight
> R O SOftWare
>
>
>
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/