English
Language : 

MC9S08GB60A Datasheet, PDF (113/302 Pages) Freescale Semiconductor, Inc – HCS08 Microcontrollers
Internal Clock Generator (S08ICGV2)
the off state. Because this is an unexpected stopping of clocks, LOLS will be set when the MCU wakes up
from stop.
Expected loss of lock occurs when the MFD or CLKS bits are changed or in FEI mode only, when the
TRIM bits are changed. In these cases, the LOCK bit will be cleared until the FLL regains lock, but the
LOLS will not be set.
7.3.7 FLL Loss-of-Clock Detection
The reference clock and the DCO clock are monitored under different conditions (see Table 7-1). Provided
the reference frequency is being monitored, ERCS = 1 indicates that the reference clock meets minimum
frequency requirements. When the reference and/or DCO clock(s) are being monitored, if either one falls
below a certain frequency, fLOR and fLOD, respectively, the LOCS status bit will be set to indicate the error.
LOCS will remain set until it is cleared by software or until the MCU is reset. LOCS is cleared by reading
ICGS1 then writing 1 to ICGIF (LOCRE = 0), or by a loss-of-clock induced reset (LOCRE = 1), or by any
MCU reset.
If the ICG is in FEE, a loss of reference clock causes the ICG to enter SCM, and a loss of DCO clock causes
the ICG to enter FBE mode. If the ICG is in FBE mode, a loss of reference clock will cause the ICG to
enter SCM. In each case, the CLKST and CLKS bits will be automatically changed to reflect the new state.
A loss of clock will also cause a loss of lock when in FEE or FEI modes. Because the method of clearing
the LOCS and LOLS bits is the same, this would only be an issue in the unlikely case that LOLRE = 1 and
LOCRE = 0. In this case, the interrupt would be overridden by the reset for the loss of lock.
Table 7-1. Clock Monitoring (When LOCD = 0)
Mode
CLKS REFST
ERCS
External Reference
Clock
Monitored?
DCO Clock
Monitored?
0X or 11
X
Forced Low
No
No
Off
10
0
Forced Low
No
No
10
1
Real-Time1
Yes(1)
No
0X
X
Forced Low
No
Yes2
SCM
10
0
Forced High
No
(CLKST = 00)
10
1
Real-Time
Yes
Yes(2)
Yes(2)
11
X
Real-Time
Yes
Yes(2)
FEI
0X
X
Forced Low
No
Yes
(CLKST = 01)
11
X
Real-Time
Yes
Yes
FBE
10
0
Forced High
No
No
(CLKST = 10)
10
1
Real-Time
Yes
No
FEE
(CLKST = 11)
11
X
Real-Time
Yes
Yes
1 If ENABLE is high (waiting for external crystal start-up after exiting stop).
2 DCO clock will not be monitored until DCOS = 1 upon entering SCM from off or FLL bypassed external mode.
MC9S08GB60A Data Sheet, Rev. 2
Freescale Semiconductor
113