----- Original Message ----- From: "leon_heller" <leon_heller@...> To: <lpc2100@yahoogroups.com> Sent: Wednesday, November 26, 2003 3:47 PM Subject: [lpc2100] Re: LPC Baud Rate Question??? > --- 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??? > > > Aren't the Baud Rate Generators driven by the VPB clock (pclk), not clck. Sorry, you said that. 15000000/(16*9600) = 97.66 for 9600 baud. Don't you just have to divide by 98 using the U0DLL and U0DLM divisor registers? Leon -- Leon Heller, G1HSM Email: aqzf13@... http://www.geocities.com/leon_heller
Message
Re: [lpc2100] Re: LPC Baud Rate Question???
2003-11-26 by Leon Heller
Attachments
- No local attachments were found for this message.