12.4.2.1 Input Clock Limitation at Start-up for PLL Mode
Table 13-9 provides the default values of the PLL prescaler, PLL feedback divider and both PLL postscalers at Power-on Reset (POR).
Register | Bit Field | Value at POR Reset | PLL Divider Ratio |
---|---|---|---|
PLLxDIV | PLLPRE[3:0] | 0001 | N1 = 1 |
PLLxDIV | POSTDIV1[2:0] | 111 | N2 = 7 |
PLLxDIV | POSTDIV2[2:0] | 001 | N3 = 1 |
PLLxDIV | PLLFBDIV[7:0] | 11001000 | M = 200 |
Given these Reset values, the following equations provide the PLL Input Frequency (FPLLI) and VCO Output Frequency (FVCO) at Power-on Reset.
To use the PLL with settings other than the default settings and to ensure all PLL requirements are met, follow this process:
- Power up the device with the Internal FRC.
- Change the FBDIV, PLLPRE, POSTDIV1 and POSTDIV2 bit values, based
on the input frequency, to meet these PLL requirements:
The PLL Input Frequency (FPLLI) must be in the range specified in Electrical Characteristics.
The VCO Output Frequency (FVCO) must be in the range specified in Electrical Characteristics.
- Writing PLLxCON:
- Enable PLL Input and Feedback Divider update by setting the PLLSWEN bit in the PLLxCON register.
- The first output divider (POSTDIV1) should be larger than the value for the second output divider (POSTDIV2). The output dividers POSTDIV1 and POSTDIV2 should not be changed while the PLL is operating. The input reference clock divider and the feedback divider may be updated during PLL operation.
- Enable PLL Output Divider update by setting the FOUTSWEN bit in the PLLxCON register.
- Select clock source by setting the NOSC[3:0] bits in the PLLxCON register.
- Enable clock switching by setting the OSWEN bit in the PLLxCON
register.Note:
- It is recommended to change clock divider settings before the initial clock switch occurs. The reference clock (PLLPRE) and feedback dividers (FBDIV) can be changed during PLL operation, but care should be taken not to generate an invalid clock frequency.
- When switching from low-speed clock to a high-speed clock, the DIVSW process should be done before a clock switch to prevent undivided high speed clocks from passing through. For a high-to-low switch, the clock switch should occur before a DIVSW.