Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Can't setup LPC2368 cpu clock correctly in Keil uV3

Status
Not open for further replies.

taskmn57

Newbie level 5
Joined
Jul 13, 2009
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,372
Hi all,

I am using keil software for my software development on a
custom board based on LPC2368 microcontroller and 12.00MHz
crystal clock on board.

The main and big problem that I have is setting the PLL
and CPU clock frequency correctly.

I used MSEL:11 and MSEL:1 and from equations in LPC23xx,
I expect to have a PLL output frequency of 144MHz and with
the clock divider of 2 I assume that I am feeding my CPU with
72MHz clock - which is the highest input clock.
There are some strange issues and differences between what I set
here and datasheet recommendations that I summarize them below:

1- According to the restrictions an obligations in datasheet,
PLL output frequency must be in the range of 275MHz to 550MHz,
while when I change MSEL, NSEL values to set the output clock
In that range, my microcontroller will stop and never can work
With it - consider that in this case I use appropriate CPU clock
Divider to get 72MHz CPU clock - even I can't connect to it using JTAG!...
Then I have to compile a new code with that old parameters
- like I said above -and use bootloader to load code to flash.

2- According to datasheet CCLKSEL value in CCLKCFG register must be
Only odd values or 0, as I told above when I set an odd value for CCLKSEL
It will not work any longer, even I can't connect to it using JTAG!...
Then I have to compile a new code with that old parameters
- like I said above -and use bootloader to load code to flash.

With the parameters that I set I expect to set my UART0 baudrate correctly
But never I could get the correct character in Hyper terminal?!!!

Can anybody tell me the reason of these differences between what datasheet
Has recommended and I could get in the real world.

I need urgent help!..
Thanks in advance,
Hossein
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top