TXZ+ Family
TMPM4G Group(1)
Clock Control and Operation Mode
2021-06-30
Rev. 1.1
22 / 88
Low speed clock
ELOSC Setting (No Operation of External Low Speed Oscillator → Operation)
An example of setting procedure is shown as follows to use the external low speed oscillator (ELOSC).
<< The example of switching procedure >>
1
[PYPDN]
<bit[3:2]> = 00
[PYPUP]
<bit[3:2]> = 00
[PYIE]
<bit[3:2]> = 00
The pull-down resistors on XT1/XT2 pins are disabled.
The pull-up resistors on XT1/XT2 pins are disabled.
Disable input control of XT1/XT2 pins.
2
[RLMLOSCCR]
<DRCOSCL> = 1
The external low speed clock source is set to the external low
speed oscillator (ELOSC).
3
[RLMLOSCCR]
<XTEN> = 1
The operation of the external low speed oscillator is set.
4
[CGWUPLCR]
<WUPTL> = arbitrary value
The oscillation stability time should be set to the warming up
timer .
5
[CGWUPLCR]
<WULON> = 1
The low speed oscillator warming up starts.
6
[CGWUPLCR]
<WULEF> is read
Wait for the completion (= 0) of the low speed oscillator warming
up.
ELCLKIN Setting (No Operation of External Low Speed Oscillator → Operation)
An example of setting procedure is shown as follows to use the external low speed clock input (ELCLKIN).
<< The example of switching procedure >>
1
[PYPDN]
<bit[2]> = 0
[PYPUP]
<bit[2]> = 0
[PYIE]
<bit[2]> = 1
Disable the pull-down resistor on XT1pin.
Disable the pull-up resistor on XT1 pin.
Enable input control of TX1(ELCLKIN) pin.
2
[RLMLOSCCR]
<DRCOSCL> = 0
The external low speed clock source is set to the external low
speed clock input (ELCLKIN).
3
[RLMLOSCCR]
<XTEN> = 1
The operation of the external low speed oscillator is set.
4
[[CGWUPLCR]
<WUPTL> = arbitrary value
The oscillation stability time should be set to the warming up timer.
5
[CGWUPLCR]
<WULON> = 1
The low speed oscillator warming up starts.
6
[CGWUPLCR]
<WULEF> is read
Wait for the completion (= 0) of the low speed oscillator warming
up.
<< The state before switching >>
[RLMLOSCCR]
<XTEN> = 0
The operation state of the external low speed oscillator is selected to
“Stop”.
[RLMLOSCCR]
<DRCOSCL> = 0
The external input clock (ELCLKIN) is selected as the low speed
clock.
<< The state before switching >>
[RLMLOSCCR]
<XTEN> = 0
The operation state of the external low speed oscillator is selected to
“Stop”.
[RLMLOSCCR]
<DRCOSCL> = 0
The external input clock (ELCLKIN) is selected as the low speed
clock.