- This topic has 0 replies, 1 voice, and was last updated 9 years, 6 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
|
I am new to ARM. I am usig LPC2103 controller.i wrote simple stratup code to my project.but it does not work. When I debug the program, struk in PLL what for lock loop in startup code.
my code like this
void SYS_INIT()
{
PLLCFG =0X02;
PLLCON=0X01; //enable pll
PLLFEED=0xAA; // feed sequence
PLLFEED=0x55;
while(!(PLLSTAT & 0x0400)); // wait for is PLL is locked
PLLCON=0x03;
PLLFEED=0xAA;
PLLFEED=0x55;
APBDIV=0x01;
}