lpcware

LPC 1768 FEED SEQUENCE SETUP

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by kranthi on Mon Feb 10 03:23:18 MST 2014
Hi,  i have a trouble in setting PLL0 Feed sequence .So PLL0 is not connecting.  Please see the code below and rectify my mistakes.

#include "lpc17xx.h"
int main()
{
//SC->PCONP |= (1<<15); //GPIO0 Power On
SC->CLKSRCSEL |= (1<<1);// Select RTC
SC->PLL0CON|= (1<<0) | (1<<1); // 0 bit for PLL0 Enable, 1st bit for PLL0 Connect.
SC->PLL0CFG|= (1<<0) | (1<<2) |(1<<3) | (1<<5) | (1<<7) | (1<<8) | (1<10) | (1<<12) | (1<<13); //M value = 13733, 11 0101 1010 0101 [14:0]
SC->PLL0CFG|= (1<<17)| (1<<16);// N value = 3( 11 ) [23:16]   for Fcco = 300 MHz ,see LPC17xx Preliminary user manual page no. 34

return 0;
}

Thanks,
Kranthi.

Attachments

Outcomes