Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[ARM] UART1 baudrate calculation for 12 MHz

Status
Not open for further replies.

pigrabbit

Newbie level 2
Joined
Sep 9, 2015
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
14
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.
 
  • Like
Reactions: d123

    d123

    Points: 2
    Helpful Answer Positive Rating
I think alexan_e answered much more than you asked.

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.
 
  • Like
Reactions: d123

    d123

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top