iii
7. 8-/16-BIT TIMER/COUNTER
7.1
Overview of 8-/16-bit Timer/Counter .........................................................................................7-3
7.2
Configuration of 8-/16-bit Timer/Counter ................................................................................... 7-5
7.3
Pins for 8-/16-bit Timer/Counter ................................................................................................ 7-7
7.4
Registers for 8-/16-bit Timer/Counter ........................................................................................7-8
7.4.1
Timer 1 Control Register (T1CR) .................................................................................. 7-9
7.4.2
Timer 2 Control Register (T2CR) ................................................................................ 7-11
7.4.3
Timer 1 Data Register (T1DR) .................................................................................... 7-13
7.4.4
Timer 2 Data Register (T2DR) .................................................................................... 7-14
7.5
Interrupt Caused by 8-/16-bit Timer/Counter ........................................................................... 7-15
7.6
Explanation of Interval Timer Function Operation ................................................................... 7-17
7.7
Explanation of Counter Function Operation............................................................................. 7-19
7.8
Operation of Square Wave Output Initialization Function (Timer 1) ........................................ 7-21
7.9
Stop and Restart Operations of 8-/16-bit Timer/Counter......................................................... 7-23
7.10 8-/16-bit Timer/Counter State in Each Standby Mode ............................................................. 7-24
7.11 Notes on Using 8-/16-bit Timer/Counter.................................................................................. 7-25
7.12 Program Examples for 8-/16-bit Timer/Counter ...................................................................... 7-27
8. 8-BIT SERIAL I/O
8.1
Overview of 8-bit Serial I/O........................................................................................................ 8-3
8.2
Configuration of 8-bit Serial I/O ................................................................................................. 8-4
8.3
Pins for 8-bit Serial I/O............................................................................................................... 8-6
8.4
Registers for 8-bit Serial I/O ...................................................................................................... 8-8
8.4.1
Serial Mode Register (SMR) ......................................................................................... 8-9
8.4.2
Serial Data Register (SDR) ......................................................................................... 8-11
8.5
Interrupt for 8-bit Serial I/O ...................................................................................................... 8-12
8.6
Explanation of Serial Output .................................................................................................... 8-13
8.7
Explanation of Serial Input....................................................................................................... 8-15
8.8
Operation in Each Mode during 8-bit Serial I/O ....................................................................... 8-17
8.9
Notes on Using 8-bit Serial I/O ................................................................................................ 8-19
8.10 Connection Example for 8-bit Serial I/O .................................................................................. 8-20
8.11 Program Examples for 8-bit Serial I/O..................................................................................... 8-21
9. BUZZER OUTPUT
9.1
Overview of Buzzer Output ........................................................................................................ 9-3
9.2
Configuration of Buzzer Output ................................................................................................. 9-4
9.3
Pin for Buzzer Output ................................................................................................................ 9-5
9.4
Register for Buzzer Output ........................................................................................................ 9-6