Contents
Input/Output Ports.............................................................................49
I/O Register List....................................................................................................49
Pull-high Resistors................................................................................................50
Port A Wake-up ....................................................................................................51
I/O Port Control Register ......................................................................................51
Pin Re-mapping Functions ...................................................................................52
I/O Pin Structures .................................................................................................56
Programming Considerations ...............................................................................56
Timer Modules
-
TM..........................................................................57
Introduction ..........................................................................................................57
TM Operation .......................................................................................................57
TM Clock Source..................................................................................................58
TM Interrupts ........................................................................................................58
TM External Pins ..................................................................................................58
TM Input/Output Pin Control Registers .................................................................60
Programming Considerations ...............................................................................62
Compact Type TM
-
CTM..................................................................63
Compact TM Operation ........................................................................................63
Compact Type TM Register Description ...............................................................64
Compact Type TM Operating Modes ....................................................................67
Compare Match Output Mode ..............................................................................67
Timer/Counter Mode.............................................................................................69
PWM Output Mode...............................................................................................70
Standard Type TM
-
STM..................................................................72
Standard TM Operation ........................................................................................72
Standard Type TM Register Description ...............................................................73
Standard Type TM Operating Modes....................................................................77
Enhanced Type TM
-
ETM ................................................................84
Enhanced TM Operation ......................................................................................84
Enhanced Type TM Register Description..............................................................85
Enhanced Type TM Operating Modes ..................................................................90
Compare Output Mode .........................................................................................91
Timer/Counter Mode.............................................................................................95
PWM Output Mode...............................................................................................95
Single Pulse Output Mode ..................................................................................101
Capture Input Mode............................................................................................103
Touch Key Function ........................................................................105
Touch Key Structure ...........................................................................................105
Touch Key Register Definition.............................................................................105
Touch Key Operation ..........................................................................................110
Touch Key Interrupt.............................................................................................110
Programming Considerations .............................................................................110
iii