- This topic has 4 replies, 3 voices, and was last updated 9 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
|
Miscellaneous › Others › how to calculate baud rate for lpc2148
i came to know from manual baud rate= Pclk/16/(256*udlm+udll)/A;
WHERE A=1+(divaddval/mulvalue);
i taken pclk 12mhz (CRYSTAL FREQUENCY) ,baud rate=9600 and A=1, i got udlm+udll= 78.125;
so i taken udll=0X4E AND dlm=0x00 in intializing uart….i simulated in keil,after debugging in peripheral window –>uart0—>my baud rate value got changed it is 12018…can you tell where the baud rate calculation i got wrong..
Hi Abiram,
Suggest you to check the clock settings, make sure that your microcontroller is running with the external crystal oscillator and not with the built-in oscillator.
hello sir,
i calculated and i got it…i taken pclk as 30MHZ, by considering VPBCLK as 0x02;
That’s great Abiram. Keep up the good work.
sir,
plz explain interrupt in lpc2148,i con't unterstood the data sheet plz give simple explaination,
how to program for the interrupt