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
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:

d123

Advanced Member level 5
Advanced Member level 5
Joined
Jun 7, 2015
Messages
2,502
Helped
494
Reputation
992
Reaction score
525
Trophy points
1,393
Location
Spain
Activity points
27,128
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):
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,525
Helped
4,761
Reputation
9,543
Reaction score
5,182
Trophy points
1,393
Activity points
156,068
Hi,

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

Klaus
 

alexan_e

Administrator
Advanced Member level 7
Joined
Mar 16, 2008
Messages
11,888
Helped
2,021
Reputation
4,158
Reaction score
2,031
Trophy points
1,393
Location
Greece
Activity points
64,371
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

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
51,221
Helped
14,653
Reputation
29,584
Reaction score
13,799
Trophy points
1,393
Location
Bochum, Germany
Activity points
292,771
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

Top