Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 06, 2016, 01:06:32 13:06


Login with username, password and session length


Pages: [1]
Print
Author Topic: How to set the clock frequency?  (Read 1025 times)
0 Members and 1 Guest are viewing this topic.
khan_yousaf
Junior Member
**
 Muted
Offline Offline

Posts: 41

Thank You
-Given: 33
-Receive: 89


« on: October 02, 2009, 09:37:11 09:37 »

I am using ICCV7ARM for programming of LPC2138. But there is no option in the compiler to set the clock frequency of the processor....How will that be handled? Do i need to edit the Makefile?
Logged
jestanoff
Junior Member
**
Offline Offline

Posts: 46

Thank You
-Given: 23
-Receive: 18



WWW
« Reply #1 on: October 02, 2009, 11:54:11 11:54 »

LPC2138 has Phase-Locked Loop for set the clock frequency, so refer the data sheet how to set PLL.
Logged
khan_yousaf
Junior Member
**
 Muted
Offline Offline

Posts: 41

Thank You
-Given: 33
-Receive: 89


« Reply #2 on: October 03, 2009, 07:35:51 07:35 »

Probably this is the way to it....
To change the PLL multiplier value on the LPC2138, you must perform a few extra steps after writing the new multiplier and control values to the PLLCFG and PLLCON registers. These steps entail writing 0xAA and then 0x55 to the PLL feed register (PLLFEED). This action loads the PLL control and configuration information from the PLLCON and PLLCFG registers into the shadow registers that actually affect PLL operation. It’s basically a good way to prevent accidental changing of the PLL value.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC