12
User’s Manual U14701EJ3V0UD
4.4.1
4.4.2
4.4.3
Selection of Mask Option ....................................................................................................
Writing to I/O port......................................................................................................................
Reading from I/O port ...............................................................................................................
Operations on I/O port ..............................................................................................................
120
120
120
121
4.5
CHAPTER 5 CLOCK GENERATOR ................................................................................................
5.1
Clock Generator Functions.................................................................................................
5.2
Clock Generator Configuration ..........................................................................................
5.3
Clock Generator Control Register......................................................................................
5.4
System Clock Oscillator......................................................................................................
5.4.1
Main system clock oscillator......................................................................................................
5.4.2
Subsystem clock oscillator ........................................................................................................
5.4.3
Divider .......................................................................................................................................
5.4.4
When no subsystem clocks are used........................................................................................
5.5
Clock Generator Operations ...............................................................................................
5.5.1
Main system clock operations ...................................................................................................
5.5.2
Subsystem clock operations .....................................................................................................
5.6
Changing System Clock and CPU Clock Settings............................................................
5.6.1
Time required for switchover between system clock and CPU clock ........................................
5.6.2
System clock and CPU clock switching procedure ...................................................................
122
122
122
124
126
126
127
130
130
131
132
133
134
134
135
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 0.........................................................................
6.1
Outline of 16-Bit Timer/Event Counter 0............................................................................
6.2
16-Bit Timer/Event Counter 0 Functions ...........................................................................
6.3
16-Bit Timer/Event Counter 0 Configuration .....................................................................
6.4
Registers to Control 16-Bit Timer/Event Counter 0 ..........................................................
6.5
16-Bit Timer/Event Counter 0 Operations..........................................................................
6.5.1
Interval timer operations............................................................................................................
6.5.2
PPG output operations..............................................................................................................
6.5.3
Pulse width measurement operations .......................................................................................
6.5.4
External event counter operation ..............................................................................................
6.5.5
Square-wave output operation ..................................................................................................
6.6
16-Bit Timer/Event Counter 0 Cautions .............................................................................
136
136
136
137
140
146
146
148
149
156
157
159
CHAPTER 7 16-BIT TIMER/EVENT COUNTER 4.........................................................................
7.1
Outline of 16-Bit Timer/Event Counter 4............................................................................
7.2
16-Bit Timer/Event Counter 4 Functions ...........................................................................
7.3
16-Bit Timer/Event Counter 4 Configuration .....................................................................
7.4
Registers to Control 16-Bit Timer/Event Counter 4 ..........................................................
7.5
16-Bit Timer/Event Counter 4 Operations..........................................................................
7.5.1
Interval timer operation .............................................................................................................
7.5.2
Square-wave output operation ..................................................................................................
7.5.3
External event counter operation ..............................................................................................
7.6
16-Bit Timer/Event Counter 4 Cautions .............................................................................
164
164
164
164
166
169
169
172
173
174
CHAPTER 8 8-BIT TIMER/EVENT COUNTERS 50, 51, 52 ........................................................
8.1
Outline of 8-Bit Timer/Event Counters 50, 51, and 52 ......................................................
8.2
8-Bit Timer/Event Counters 50, 51, and 52 Functions ......................................................
175
175
175