PLL0 Code:
Ex-
#include<lpc214x.h>
#define PLLE 0
#define PLLC 1
#define PLOCK 10
int main()
{
PLL0CFG=0x25;
PLL0CON=PLL0CON|(1<<PLLE);
PLL0FEED=0xAA;
PLL0FEED=0x55;
//PLL0CON=PLL0CON|(1<<PLLC);
while( (PLL0STAT & (1<<PLOCK))==0);
PLL0CON=PLL0CON|3;
PLL0FEED=0xAA;
PLL0FEED=0x55;
VPBDIV=0x00;
return 0;
}
Ex-
#include<lpc214x.h>
#define PLLE 0
#define PLLC 1
#define PLOCK 10
int main()
{
PLL0CFG=0x25;
PLL0CON=PLL0CON|(1<<PLLE);
PLL0FEED=0xAA;
PLL0FEED=0x55;
//PLL0CON=PLL0CON|(1<<PLLC);
while( (PLL0STAT & (1<<PLOCK))==0);
PLL0CON=PLL0CON|3;
PLL0FEED=0xAA;
PLL0FEED=0x55;
VPBDIV=0x00;
return 0;
}
0 comments:
Post a Comment
if you have any doubt please let me know