Frequency-modulated phase locked loop (FMPLL)MPC5644A Microcontroller Reference Manual, Rev. 6576 Freescale Semiconductor3. If required, program the FMPLL_SYNFMMR with desired FM parameters, poll the BSY bit until it negates, then enableFM by asserting the MODEN bit.4. Engage normal mode by writing to FMPLL_ESYNCR1[CLKCFG].17.5.3 Lock detectionA pair of counters monitor the reference and feedback clocks to determine when the system has acquired frequency lock. Oncethe FMPLL has locked, the counters continue to monitor the reference and feedback clocks and will report if/when the FMPLLhas lost lock. The FMPLL registers provide the flexibility to select whether to generate an interrupt, assert system reset or donothing in the event that the FMPLL loses lock.Loss-of-lock reset and interrupt are only generated when the FMPLL is operating in normal mode. The LOCF bit is not assertedby a loss-of-lock condition detected during bypass, although going to bypass mode from normal mode does not automaticallyclear the flag if it was asserted while the FMPLL was in normal mode.17.5.4 Loss-of-clock detectionThe FMPLL reference and output clocks may be continuously monitored by a module called ClockQuality Monitor (CQM), shown in Figure 17-7. The intent of the CQM is to assure that the system busclock is created from good clock sources. Whether the clocks are monitored or not is determined by theclock operating mode and control bits in the FMPLL registers, as shown in Table 17-12.In bypass mode with crystal reference, the reference clock is always monitored, regardless of the state ofthe LOCEN bit. In bypass mode with external reference, the reference clock is not monitored, regardlessof the state of the LOCEN bit. This is done so that the whole device frequency range can be sourced fromthe external clock generator when using external reference mode. The FMPLL output may only monitoredin normal mode, depending on the state of the LOCEN bit.The clock quality monitor uses an internal 4 MHz RC oscillator as a reference time base to measure thefrequency of the crystal oscillator and the FMPLL output. The frequency of these clocks are expected tobe within the following frequency ranges:• Reference clock must be within the crystal frequency range 1• PLL output must be above 1.5 MHz (minimum VCO free-running frequency divided by themaximum ERFD)In the event either of the clocks fall outside the expected window, a loss of clock condition is reported. TheFMPLL can be programmed to switch the system clock to a backup clock in the event of such a failure.Additionally, the user may select to have the system enter reset, assert an interrupt request, or do nothingif/when the FMPLL reports this condition.1. See Section 17.1, Information specific to this device, for information on crystal frequencies supported.