TXZ+ Family
TMPM4G Group(1)
Clock Control and Operation Mode
2021-06-30
Rev. 1.1
37 / 88
Detail of Register
[CGPROTECT]
(CG write protection register)
Bit
Bit Symbol
After
reset
Type
Function
31:8
-
0
R
Read as “0”.
7:0
PROTECT[7:0]
0xC1
R/W
Control write-protection for the CG register (all registers except for
this register)
0xC1: CG Registers are write-enabled (Protect disable).
Other than 0xC1: Sets write protection (Protect enable)
[CGOSCCR]
(Oscillation control register)
Bit
Bit Symbol
After
reset
Type
Function
31:17
-
0
R
Read as "0".
16
IHOSC1F
1
R
Indicates the stability flag of internal oscillation 1 for IHOSC1
(Note4)
0: Stopping or being in warming up
1: Stable oscillation
15:13
-
0
R
Read as "0".
12
-
0
R/W Write as "0".
11:10
-
0
R
Read as "0".
9
OSCF
0
R
Indicates high speed oscillator for fosc selection status.
0: Internal high speed oscillator 1 (IHOSC1)
1: External high speed oscillator (EHOSC)
8
OSCSEL
0
R/W
Selects a high speed oscillation for fosc. (Note1)
0: Internal high speed oscillator 1 (IHOSC1)
1: External high speed oscillator (EHOSC)
7:4
-
0
R
Read as "0".
3
-
0
R/W Write as "0".
2:1
EOSCEN[1:0]
00
R/W
Selects the operation of the external high speed oscillator.
(EHOSC) (Note2)
00: External oscillator is not used
01: Uses the external high speed oscillator (EHOSC)
10: Uses the external clock (EHCLKIN)
11: Reserved
0
IHOSC1EN
1
R/W
Internal high speed oscillator 1 (IHOSC1)
0: Stop
1: Oscillation
Note1: When the setting is modified, confirm whether the written value has been reflected to the
[CGOSCCR]
<OSCF> bit before executing the next operation.
Note2: When using the oscillator connection, set "01" to this bit(external high speed oscillation).
Note3: Setting cannot be changed, when it is
[SIWDxOSCCR]
<OSCPRO>=1 (write protection of SIWDT is
effective)
Note4: To wait stabilizing oscillation of
an internal high speed oscillator 1 (IHOSC1) , use a warming up timer
and confirm [CGWUPHCR]<WUEF> instead of <IHOSCF1>.