Electronics America Computer Hardware User Manual
- iii -
ContentsPreface
5.8.4 Built-In Pull-Up Resistor ..........................................................................................93
5.8.5 Notes .........................................................................................................................93
5.9 NOTES ...................................................................................................................................93
CHAPTER 6 REAL-TIME OUTPUT FUNCTION .................................................................................................95
6.1 CONFIGURATION AND FUNCTION ...................................................................................95
6.2 REAL-TIME OUTPUT CONTROL REGISTER (RTPC) ........................................................97
6.3 ACCESS TO THE REAL-TIME OUTPUT PORT ..................................................................97
6.4 OPERATION ..........................................................................................................................99
6.5 APPLICATION EXAMPLE.....................................................................................................102
6.6 NOTES ...................................................................................................................................104
CHAPTER 7 TIMER/COUNTER UNITS ..............................................................................................................107
7.1 16-BIT TIMER/COUNTER .....................................................................................................109
7.1.1 Functions ...................................................................................................................109
7.1.2 Configuration ............................................................................................................109
7.1.3 16-Bit Timer/Counter Control Registers ................................................................111
7.1.4 Operation of 16-Bit Timer 0 (TM0) ........................................................................114
7.1.5 Compare Register and Capture Register Operations ..........................................117
7.1.6 Basic Operation of Output Control Circuit ...........................................................119
7.1.7 PWM Output .............................................................................................................122
7.1.8 PPG Output ...............................................................................................................125
7.1.9 Sample Applications ...............................................................................................129
7.2 8-BIT TIMER/COUNTER 1 ....................................................................................................139
7.2.1 Functions ...................................................................................................................139
7.2.2 Configuration ............................................................................................................140
7.2.3 8-Bit Timer/Counter 1 Control Registers...............................................................143
7.2.4 Operation of 8-Bit Timer 1 (TM1) ..........................................................................145
7.2.5 Compare Register and Capture/Compare Register Operations .........................148
7.2.6 Sample Applications ...............................................................................................151
7.3 8-BIT TIMER/COUNTER 2 ....................................................................................................159
7.3.1 Functions ...................................................................................................................159
7.3.2 Configuration ............................................................................................................161
7.3.3 8-Bit Timer/Counter 2 Control Registers...............................................................163
7.3.4 Operation of 8-Bit Timer 2 (TM2) ..........................................................................167
7.3.5 External Event Counter Function ...........................................................................170
7.3.6 One-Shot Timer Function .......................................................................................175
7.3.7 Compare Register and Capture Register Operations ..........................................176
7.3.8 Basic Operation of Output Control Circuit ...........................................................179
7.3.9 PWM Output .............................................................................................................182
7.3.10 PPG Output ...............................................................................................................185
7.3.11 Sample Applications ...............................................................................................190
7.4 8-BIT TIMER/COUNTER 3 ....................................................................................................205
7.4.1 Functions ...................................................................................................................205
7.4.2 Configuration ............................................................................................................205
7.4.3 8-Bit Timer/Counter 3 Control Registers...............................................................207
7.4.4 Operation of 8-Bit Timer 3 (TM3) ..........................................................................208
7.4.5 Compare Register Operation ..................................................................................210










