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 16-Bit Free-Running Timer ......................................................................... 155
8.1 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
8.2 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
8.3 CPU Interface..................................................................................................................... 170
8.4 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
8.5 Interrupts............................................................................................................................ 181
8.6 Sample Application............................................................................................................ 182
8.7 Application Notes .............................................................................................................. 183
Section 9 8-Bit Timers...................................................................................................... 189
9.1 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
iv