CHAPTER 5 CLOCK GENERATOR ...................................................................................................... 75
5.1 Functions of Clock Generator ..................................................................................................... 75
5.2 Configuration of Clock Generator .............................................................................................. 76
5.3 Registers Controlling Clock Generator ...................................................................................... 78
5.3.1 Clock operation mode control register (CMC) .................................................................................. 79
5.3.2 System clock control register (CKC) ................................................................................................. 80
5.3.3 Clock operation status control register (CSC) .................................................................................. 81
5.3.4 Oscillation stabilization time counter status register (OSTC) ............................................................ 82
5.3.5 Oscillation stabilization time select register (OSTS) ......................................................................... 84
5.3.6 Peripheral enable register 0 (PER0) ................................................................................................. 85
5.3.7 Operation speed mode control register (OSMC) .............................................................................. 86
5.3.8 High-speed on-chip oscillator frequency selection register (HOCODIV) .......................................... 87
5.4 System Clock Oscillator .............................................................................................................. 88
5.4.1 X1 oscillator (16-pin products only) .................................................................................................. 88
5.4.2 High-speed on-chip oscillator ........................................................................................................... 91
5.4.3 Low-speed on-chip oscillator ............................................................................................................ 91
5.5 Clock Generator Operation ......................................................................................................... 91
5.6 Controlling Clock .......................................................................................................................... 93
5.6.1 Example of setting high-speed on-chip oscillator ............................................................................. 93
5.6.2 Example of setting X1 oscillation clock ............................................................................................. 94
5.6.3 CPU clock status transition diagram ................................................................................................. 95
5.6.4 Condition before changing CPU clock and processing after changing CPU clock ........................... 98
5.6.5 Time required for switchover of CPU clock and main system clock ................................................. 99
5.6.6 Conditions before clock oscillation is stopped .................................................................................. 99
5.7 Resonator and Oscillator Constants ........................................................................................ 100
CHAPTER 6 TIMER ARRAY UNIT ...................................................................................................... 102
6.1 Functions of Timer Array Unit ................................................................................................... 104
6.1.1 Independent channel operation function ........................................................................................ 104
6.1.2 Simultaneous channel operation function ....................................................................................... 106
6.1.3 8-bit timer operation function (channels 1 and 3 only) .................................................................... 108
6.2 Configuration of Timer Array Unit ............................................................................................ 109
6.2.1 Timer counter register 0n (TCR0n) ................................................................................................. 113
6.2.2 Timer data register 0n (TDR0n) ...................................................................................................... 115
6.3 Registers Controlling Timer Array Unit.................................................................................... 117
6.3.1 Peripheral enable register 0 (PER0) ............................................................................................... 118
6.3.2 Timer clock select register 0 (TPS0) .............................................................................................. 119
6.3.3 Timer mode register 0n (TMR0n) ................................................................................................... 120
6.3.4 Timer status register 0n (TSR0n) ................................................................................................... 125
6.3.5 Timer channel enable status register 0 (TE0, TEH0 (8-bit mode)) ................................................. 126