Continue to Site

[ARM]UART1 baudrate calculation for 12 MHz

Status
Not open for further replies.

pigrabbit

Newbie level 2
For LPC2148 controller how to find baudrate for 12Mhz:
How to find P value and M value & pclk, U1DLL. i need brief explanation. can anyone help me.....

Last edited by a moderator:

I wish I could help you as that is an interesting question and I could learn something from the answer.

To save people time, the datasheet is here (please correct if this is not the right datasheet):

Hi,

12 MBaud? Or is 12MHz the system clock frequency?

Klaus

To save people time, the datasheet is here (please correct if this is not the right datasheet):

Actually that contains the general characteristics and electrical data. The details about registers are in the user manual

For LPC2148 controller how to find baudrate for 12Mhz:
How to find P value and M value & pclk, U1DLL. i need brief explanation. can anyone help me.....

Have you tried the user manual?
The PLL settings are described in sections 4.8.9 to 4.8.11

To experiment with UART you can download the code bundle located http://www.lpcware.com/content/nxpf...pc213xlpc214x-peripherals-using-keils-μvision
It includes a UART example (and a library you can use).

You never mentioned the compiler you are using, the examples are for keil uvision.

d123

d123

Points: 2
Hi,

12 MBaud? Or is 12MHz the system clock frequency?

Klaus

how to set baudrate for 12mhz. this is the que. i think sys clk freq.

Now it's time for you to become familiar with the very basic LPC2148 system properties.

After reviewing the mentioned documents, you'll realize that you are dealing with at least three different clock frequencies:
- Fosc, the external crystal or oscillator frequency
- CCLK, the processor clock frequency, PLL generated in the range of 10 to 60 MHz
- PCLK, the peripheral clock frequency, divided CCLK, drives e.g. the UART

Instead of repeating 12 MHz like a mantra, find out what's the actual PCLK of your design.

d123

d123

Points: 2
Status
Not open for further replies.