
15
5.9
Port 7 ............................................................................................................................... 150
5.9.1
Hardware configuration......................................................................................................
5.9.2
Notes ..................................................................................................................................
Port 8 ............................................................................................................................... 151
5.10.1
Hardware configuration......................................................................................................
5.10.2
Cautions..............................................................................................................................
Port 9 ............................................................................................................................... 152
5.11.1
Hardware configuration......................................................................................................
5.11.2
Setting of I/O mode/control mode .....................................................................................
5.11.3
Operating status.................................................................................................................
5.11.4
Internal pull-up resistor ......................................................................................................
Port Output Data Check Function................................................................................ 160
Cautions .......................................................................................................................... 163
150
150
5.10
151
151
5.11
153
155
156
158
5.12
5.13
CHAPTER 6 REAL-TIME OUTPUT FUNCTION .............................................................................. 165
6.1
6.2
6.3
6.4
6.5
Configuration and Function.......................................................................................... 165
Real-Time Output Port Control Register (RTPC) ....................................................... 166
Operation......................................................................................................................... 167
Example of Use .............................................................................................................. 168
Cautions .......................................................................................................................... 170
CHAPTER 7 OUTLINE OF TIMER/COUNTER ................................................................................ 171
CHAPTER 8 TIMER 0........................................................................................................................ 175
8.1
8.2
8.3
8.4
Function .......................................................................................................................... 175
Configuration.................................................................................................................. 176
Timer 0 Control Register............................................................................................... 179
Operation of Timer Register 0 (TM0) ........................................................................... 182
8.4.1
Basic operation ..................................................................................................................
8.4.2
Clear operation...................................................................................................................
Operation of Capture/Compare Register .................................................................... 185
8.5.1
Compare operation ............................................................................................................
8.5.2
Capture operation ..............................................................................................................
Basic Operation of Output Control Circuit................................................................. 189
8.6.1
Basic operation ..................................................................................................................
8.6.2
Toggle output......................................................................................................................
8.6.3
Set/reset output..................................................................................................................
Examples of Use ............................................................................................................ 193
8.7.1
Operation as interval timer ................................................................................................
8.7.2
Pulse width measurement operation.................................................................................
Cautions .......................................................................................................................... 199
182
184
8.5
185
187
8.6
191
191
192
8.7
193
196
8.8
CHAPTER 9 TIMER 1........................................................................................................................ 203
9.1
9.2
Function .......................................................................................................................... 203
Configuration.................................................................................................................. 203