Datasheet
8.3.4 Initializing FBE mode
The following code segment demonstrates setting ICS to FBE mode.
Example: 8.3.4.1 FBE mode initialization routine
/* the following code segment demonstrates setting ICS to FBE mode generating 20MHZ bus*/
/* supposing external 20MHZ crystal is installed in high gain mode */
ICS_C2 = 0x34; /* high-range, high-gain, oscillator required */
while (ICS_OSCINIT == 0); /* waiting until oscillator is ready */
ICS_C1 = 0x80; /* external clock reference (20MHZ) to FLL output */
ICS_C3 = 0x00; /* BDIV = 0, prescalar = 1 */
8.3.5 External oscillator (OSC)
The oscillator module provides the reference clock for internal reference clock module
(ICS), the real time counter clock module, and other MCU sub-systems.
OSCOUT
OSCINIT
High Gain
Oscillator
MCU
EXTAL
XTAL
R
s
R
F
C1
C2
X1
EN
XTLCLK
Initialization
Oscillator
Low-Powe r
LP
RANGE
OSCOS
Figure 8-4. Oscillator module block diagram
Initialization / application information
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
206 Freescale Semiconductor, Inc.
