在PLL初始化函数里有这么一段:
// If switching to 1/2
if((divsel == 1)||(divsel == 2))
{
EALLOW;
SysCtrlRegs.PLLSTS.bit.DIVSEL = divsel;
EDIS;
}
// If switching to 1/1
// * First go to 1/2 and let the power settle
// The time required will depend on the system, this is only an example
// * Then switch to 1/1
if(divsel == 3)
{
EALLOW;
SysCtrlRegs.PLLSTS.bit.DIVSEL = 2;
DELAY_US(50L);
SysCtrlRegs.PLLSTS.bit.DIVSEL = 3;
EDIS;
}
可是在PLL设置表30里的描述却是:DIVSEL=0或1,DIVSEL=2,DIVSEL=3,怎么回事呀?
另外上面函数中 SysCtrlRegs.PLLSTS.bit.DIVSEL = 2;然后又SysCtrlRegs.PLLSTS.bit.DIVSEL = 3;我糊涂了,求教指导 |