Contents
Timer Modules - TM..........................................................................59
Introduction ..........................................................................................................59
TM Operation .......................................................................................................60
TM Clock Source..................................................................................................60
TM Interrupts........................................................................................................60
TM External Pins....................................................................................................6
TM Input/Output Pin Control Registers .................................................................61
Programming Considerations ...............................................................................66
Compact Type TM - CTM..................................................................67
Compact TM Operation ........................................................................................67
Compact Type TM Register Description ...............................................................68
Compact Type TM Operating Modes....................................................................72
Standard Type TM - STM..................................................................77
Standard TM Operation........................................................................................77
Standard Type TM Register Description ...............................................................78
Standard Type TM Operating Modes....................................................................82
Enhanced Type TM - ETM ................................................................89
Enhanced TM Operation ......................................................................................89
Enhanced Type TM Register Description..............................................................90
Enhanced Type TM Operating Modes ..................................................................95
Compare Output Mode.........................................................................................96
Capture Input Mode............................................................................................107
Analog to Digital Converter............................................................109
A/D Overview .....................................................................................................109
A/D Converter Register Description....................................................................109
A/D Converter Data Registers - ADRL, ADRH ...................................................110
A/D Converter Control Registers - ADCR0, ADCR1, ACER ...............................110
A/D Operation.....................................................................................................113
A/D Input Pins.....................................................................................................114
Summary of A/D Conversion Steps ....................................................................115
Programming Considerations .............................................................................116
A/D Transfer Function.........................................................................................116
A/D Programming Example ................................................................................117
Interrupts..........................................................................................119
Interrupt Registers ..............................................................................................119
Interrupt Operation .............................................................................................124
External Interrupt................................................................................................126
Multi-function Interrupt........................................................................................126
A/D Converter Interrupt.......................................................................................127
Time Base Interrupts ..........................................................................................127
LVD Interrupt ......................................................................................................128
TM Interrupts......................................................................................................128
Rev. 1.10
4
February 9, 2011