System Clock Protective Function; Oscillation Stop And Re-Oscillation Detect Function - Renesas M16C/26A Series Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1

7.7 System Clock Protective Function

When the main clock is selected for the CPU clock source, this function protects the clock from modifica-
tions in order to prevent the CPU clock from becoming halted by run-away.
If the PM21 bit in the PM2 register is set to "1" (clock modification disabled), the following bits are protected
against writes:
• CM02, CM05, and CM07 bits in CM0 register
• CM10, CM11 bits in CM1 register
• CM20 bit in CM2 register
• All bits in PLC0 register
Before the system clock protective function can be used, the following register settings must be made while
the CM05 bit in the CM0 register is "0" (main clock oscillating) and CM07 bit is "0" (main clock selected for
the CPU clock source):
(1) Set the PRC1 bit in the PRCR register to "1" (enable writes to PM2 register).
(2) Set the PM21 bit in the PM2 register to "1" (disable clock modification).
(3) Set the PRC1 bit in the PRCR register to "0" (disable writes to PM2 register).
Do not execute the WAIT instruction when the PM21 bit is set to "1".

7.8 Oscillation Stop and Re-oscillation Detect Function

The oscillation stop and re-oscillation detect function allows the detection of main clock oscillation stop and
reoscillation. At oscillation stop or re-oscillation detection, reset or oscillation stop, re-oscillation detection
interrupt are generated. Depending on the CM27 bit in the CM2 register. The oscillation stop detection
function can be enabled and disabled by the CM20 bit in the CM2 register. Table 7.8.1 lists a specification
overview of the oscillation stop and re-oscillation detect function.
Table 7.8.1. Specification Overview of Oscillation Stop and Re-oscillation Detect Function
Item
Oscillation stop detectable clock and
frequency bandwidth
Enabling condition for oscillation stop,
re-oscillation detection function
Operation at oscillation stop,
re-oscillation detection
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
6
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
f(X
Set the CM20 bit to "1"(enable)
•Reset occurs (when the CM27 bit is set to "0")
•Oscillation stop, re-oscillation detection interrupt occurs(when the CM27 bit is
set to "1")
page 57
f o
3
2
9
6
C
2 /
6
) T
Specification
) ≥ 2 MHz
IN
7. Clock Generation Circuit

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents