iv
7.11.2 Register Configuration and Descriptions.............................................................. 146
7.11.3 Pin Functions in Each Mode................................................................................. 148
7.11.4 Input Pull-Up Transistors...................................................................................... 149
7.12 Port B ................................................................................................................................. 150
7.12.1 Overview............................................................................................................... 150
7.12.2 Register Configuration and Descriptions.............................................................. 151
7.12.3 Pin Functions in Each Mode................................................................................. 153
7.12.4 Input Pull-Up Transistors...................................................................................... 154
Section 8
8.1
16-Bit Free-Running Timer
......................................................................... 155
Overview............................................................................................................................ 155
8.1.1
Features................................................................................................................. 155
8.1.2
Block Diagram...................................................................................................... 156
8.1.3
Input and Output Pins........................................................................................... 157
8.1.4
Register Configuration.......................................................................................... 158
Register Descriptions......................................................................................................... 159
8.2.1
Free-Running Counter (FRC)............................................................................... 159
8.2.2
Output Compare Registers A and B (OCRA and OCRB).................................... 159
8.2.3
Input Capture Registers A to D (ICRA to ICRD)................................................. 160
8.2.4
Timer Interrupt Enable Register (TIER)............................................................... 162
8.2.5
Timer Control/Status Register (TCSR) ................................................................ 164
8.2.6
Timer Control Register (TCR).............................................................................. 166
8.2.7
Timer Output Compare Control Register (TOCR)............................................... 168
CPU Interface..................................................................................................................... 170
Operation............................................................................................................................ 173
8.4.1
FRC Increment Timing......................................................................................... 173
8.4.2
Output Compare Timing....................................................................................... 175
8.4.3
FRC Clear Timing................................................................................................ 176
8.4.4
Input Capture Timing............................................................................................ 176
8.4.5
Timing of Input Capture Flag (ICF) Setting......................................................... 179
8.4.6
Setting of Output Compare Flags A and B (OCFA and OCFB).......................... 179
8.4.7
Setting of FRC Overflow Flag (OVF).................................................................. 180
Interrupts............................................................................................................................ 181
Sample Application............................................................................................................ 182
Application Notes.............................................................................................................. 183
8.2
8.3
8.4
8.5
8.6
8.7
Section 9
9.1
8-Bit Timers
...................................................................................................... 189
Overview............................................................................................................................ 189
9.1.1
Features................................................................................................................. 189
9.1.2
Block Diagram...................................................................................................... 190
9.1.3
Input and Output Pins........................................................................................... 191
9.1.4
Register Configuration.......................................................................................... 191