TXZ+ Family
TMPM4G Group(1)
Clock Control and Operation Mode
2021-06-30
Rev. 1.1
20 / 88
Table 1.6 shows the example of operating frequency by the clock gear ratio (1/1 to 1/16) to the frequency fc set up
with Oscillation frequency, a PLL multiplication value, etc.
Table 1.6 Example of operating frequency
External
Oscillation
(MHz)
External
Clock
input
(MHz)
Built-in
oscillation
IHOSC1
(MHz)
PLL
Multiplication
value
(after dividing)
Maximum
Frequency
(fc)(MHz)
Operating frequency (MHz) by
clock gear ratio
PLL=ON
Operating frequency (MHz)
by clock gear ratio
PLL=OFF
1/1
1/2
1/4 1/8
1/16
1/1 1/2 1/4
1/8
1/16
8
8
-
25
200
200
100
50 25 12.5
8
4
2
1
-
10
10
10
20
200
200
100
50 25 12.5 10
5
2.5 1.25
-
12
12
-
16
192
192
96
48 24
12
12
6
3
1.5
-
16
16
-
12
192
192
96
48 24
12
16
8
4
2
1
20
20
-
10
200
200
100
50 25 12.5 20 10
5
2.5
1.25
Table 1.7 Operating frequency examples of High speed and Middle speed system clocks
High speed
system clock
fsysh (MHz)
Middle speed system
clock
fsysm (MHz)
1/1
1/2
1/4
200
-
100
50
160
-
80
40
100
100
50
25
80
80
40
20
Note: The maximum frequency of Middle speed system clock is 100 MHz.
The setting method of a system clock
(1)
fosc setup (Internal oscillation
→
External oscillation)
As a f
osc
setup, the example of switching procedure to the external high speed oscillation (EHOSC) from an
internal high speed oscillation 1 (IHOSC1) is shown below.
<< The example of switching procedure >>
1
[PYPDN]
<bit[1:0]> = 00
[PYPUP]
<bit[1:0]> = 00
[PYIE]
<bit[1:0]> = 00
Disable the pull-down resistors of X1 and X2 pins.
Disable the pull-up resistors of X1 and X2 pins.
Disable input control of X1 and X2 pins.
2
[CGOSCCR]
<EOSCEN[1:0]> = 01
It is an external oscillation (EHOSC) about selection of an external
oscillation of operation.
3
[CGWUPHCR]
<WUCLK> = 1
[CGWUPHCR]
<WUPT[15:4]> =
arbitrary value
It is the external (EHOSC) about high speed oscillation warming up
clock selection.
A warming-up timer is set to
oscillator stable time.
4
[CGWUPHCR]
<WUON> = 1
High speed oscillation warming up is started.
5
[CGWUPHCR]
<WUEF> is read.
It waits until it becomes the termination of high speed oscillation
warming up (= 0).
6
[CGOSCCR]
<OSCSEL> = 1
It is high speed oscillation selection for fosc to the exterior (EHOSC).
7
[CGOSCCR]
<OSCF> is read
It waits until the high speed oscillation selection status for fosc
becomes outside (= 1).
8
[CGOSCCR]
<IHOSC1EN> = 0
An internal high speed oscillator1 is suspended.
<< The state before switching >>
[CGOSCCR]
<IHOSC1EN> = 1
An internal high speed oscillator1 oscillates.
[CGOSCCR]
<OSCSEL> = 0
The high speed oscillation selection for fosc is an inside (IHOSC1).
[CGOSCCR]
<OSCF> = 0
The high speed oscillation selection status for fosc is an inside
(IHOSC1).
An oscillator is connected to X1 / X2 pin.
Do not connect any devices except a resonator.