Datasheet
Internal Clock Generator (S08ICGV2)
MC9S08GB60A Data Sheet, Rev. 2
120 Freescale Semiconductor
ICGC2 = $30 (%00110000)
Bit 7 LOLRE 0 Generates an interrupt request on loss of lock
Bit 6:4 MFD 011 Sets the MFD multiplication factor to 10
Bit 3 LOCRE 0 Generates an interrupt request on loss of clock
Bit 2:0 RFD 000 Sets the RFD division factor to รท1
ICGS1 = $xx
This is read only except for clearing interrupt flag
ICGS2 = $xx
This is read only. Should read DCOS before performing any time critical tasks
ICGFLTLU/L = $xx
Not used in this example
ICGTRM
Not used in this example
Figure 7-9. ICG Initialization and Stop Recovery for Example #2
RECOVERY FROM
CONTINUE
RECOVERY
CHECK
LOCK = 1?
NO
YES
FLL LOCK STATUS
INITIALIZE ICG
ICG1 = $7A
ICG2 = $30
CONTINUE
CHECK
LOCK = 1?
NO
YES
FLL LOCK STATUS
SERVICE INTERRUPT
SOURCE (f
Bus
= 4 MHz)
FROM STOP3
RESET, STOP1, STOP2
