Freescale Semiconductor MCF51QE128RM Chapter Internal Clock Source S08ICSV3, External Oscillator

Models: MCF51QE128RM

1 424
Download 424 pages 63.71 Kb
Page 243
Image 243

Chapter 12

Internal Clock Source (S08ICSV3)

12.1Introduction

The internal clock source (ICS) module provides clock source choices for the MCU. The module contains a frequency-locked loop (FLL) as a clock source that is controllable by either an internal or an external reference clock. The module can provide this FLL clock or either of the internal or external reference clocks as a source for the MCU system clock.

The ICSTRM and FTRIM bits are normally reset to the factory trim values on any reset. However, any reset that puts the device into BDM (a POR with the BKGD pin held low or a development tool setting SBDFR[BDFR]) results in the ICSTRM and FTRIM bits being set to values of 0x80 and 0. When debugging the MCU, the factory trim value can be used by copying the trim values from the Flash locations shown in table 4-4.

There are also signals provided to control a low power oscillator (XOSCVLP) module to allow the use of an external crystal/resonator as the external reference clock.

Whichever clock source is chosen, it is passed through a reduced bus divider (BDIV) which allows a lower final output clock frequency to be derived.

12.1.1External Oscillator

The external oscillator module (XOSCVLP) provides the external clock opitons to the ICS module. The output of this submodule (OSCOUT) can be used as the real-time counter module (RTC) clock source.

12.1.2Stop2 Mode Considerations

If you are using a low range oscillator during stop2, reconfigure the ICSC2 register (the oscillator control bits) before PPDACK is written. The low range (RANGE=0) oscillator can operate in stop2 to be the clock source for the RTC module. If the low range oscillator is active when entering stop2, it remains active in stop2 regardless of the value of EREFSTEN. To disable the oscillator in stop2, switch the ICS into FBI or FEI mode before executing the STOP instruction.

Figure 12-1shows the MCF51QE128 Series block diagram with the ICS highlighted.

MCF51QE128 MCU Series Reference Manual, Rev. 3

Freescale Semiconductor

243

Get the latest version from freescale.com

Page 243
Image 243
Freescale Semiconductor MCF51QE128RM manual Chapter Internal Clock Source S08ICSV3, External Oscillator