sc9s08mz16 Freescale Semiconductor, Inc, sc9s08mz16 Datasheet - Page 136

no-image

sc9s08mz16

Manufacturer Part Number
sc9s08mz16
Description
Hcs08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Internal Clock Generator (S08ICGV4)
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.
8.5.9
The reference clock and the DCO clock are monitored under different conditions (see
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, f
LOCS will remain set until it is acknowledged 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.
If the ICG is in FEE mode when a loss of clock occurs and the ERCS is still set to 1, then the CLKST bits
are set to 10 and the ICG reverts to FBE mode.
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.
136
1
2
If ENABLE is high (waiting for external crystal start-up after exiting stop).
DCO clock will not be monitored until DCOS = 1 upon entering SCM from off or FLL bypassed external mode.
(CLKST = 00)
(CLKST = 01)
(CLKST = 10)
(CLKST = 11)
Mode
SCM
FBE
FEE
FLL Loss-of-Clock Detection
FEI
Off
0X or 11
CLKS
0X
0X
10
10
10
10
11
11
10
10
11
LOR
Table 8-8. Clock Monitoring (When LOCD = 0)
and f
REFST
X
X
X
X
X
X
0
1
0
1
0
1
SC9S08MZ16 MCU Data Sheet, Rev. 1
LOD
, respectively, the LOCS status bit will be set to indicate the error.
Forced High
Forced High
Forced Low
Forced Low
Forced Low
Forced Low
Real-Time
Real-Time
Real-Time
Real-Time
Real-Time
Real-Time
ERCS
1
External Reference
Monitored?
Clock
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No
(1)
Freescale Semiconductor
Table
Monitored?
DCO Clock
Yes
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
(2)
(2)
(2)
8-8). Provided
2

Related parts for sc9s08mz16