250
Chapter 18 Timebase Counter
3.Configuration
■ Events that invoke an oscillation stabilization wait using other than the timebase counter
● Wait time after power on: Provided by pin input
● Wait time after changing from subclock to main clock: Using the main oscillation stabilization wait
timer to generate this time is recommended.
● When recovering from main clock oscillation halted: Enabling the main clock oscillation and
waiting for oscillation to stabilize is required.
● Main PLL lock wait time (for main clock operation): Using the timebase timer interrupt to generate
this time is recommended.
• A wait time is required after the main PLL operation is enabled.
• A wait time is required after the main PLL multiplier setting is changed.
3. Configuration
Figure 3-1 Configuration Diagram
Figure 3-2 Register List
Time-base counter
(when used to generate the oscillation stabilization wait)
CLKR :bit 1-0
F 0
0
1
10
11
0
F
CL-SUB
/2
/2
CL-MAIN
F
F
CL-SUB
/2
CL-MAIN
CKS1-CKS0
Base clock
(φ2)
Time-base counter
(26-bit counter)
0 1 2 3 9 10111213141516171819202122232425
- INIT pin input
- Watchdog reset
- STOP
2
1
2
2
2
3
2
4
2
10
2
11
2
12
2
13
2
14
2
15
2
16
2
17
2
18
2
19
2
20
2
21
2
22
2
23
2
24
2
25
2
26
OS1-OS0 ST CR:bit 3-2
0
0
1
10
11
0
φ2 x
φ2 x
φ2 x
φ2 x
2
1
2
11
2
16
2
22
Selector
Edge detection
Oscillation stabilization
wait control signal