Ricardo_Electropepper
Member level 3
- Joined
- Mar 18, 2014
- Messages
- 59
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 8
- Activity points
- 407
Im trying to make the routine to star the PLL on LPC1343,
so far i wrote this based in someone else code :
Ive been googling around and there is not much about it, since most people just uses CMSIS.
Does anyone knows how to start the PLL properly ?
so far i wrote this based in someone else code :
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 void InitPLL (void) { PDRUNCFG |= 0x00000080; // Set SYSPLL_PD SYSPLLCLKUEN &= ~0x00000001; // No change SYSPLLCLKSEL = 0x00000001; // System oscillator SYSPLLCLKUEN |= 0x00000001; // Update clock source SYSPLLCTRL = 0x00000025; // FCLKOUT = 72 MHz /// M div = 6 / P div = 2 PDRUNCFG &= ~0x00000080; // Set SYSPLL_PD while(!(SYSPLLSTAT & 0x000000001)){} //If 1 -> PLL locked }
Ive been googling around and there is not much about it, since most people just uses CMSIS.
Does anyone knows how to start the PLL properly ?