Contents
Timer/Event Counters.......................................................................32
Configuring the Timer/Event Counter Input Clock Source.....................................32
Timer Registers - TMR0, TMR1 ...........................................................................32
Timer Control Registers - TMR0C, TMR1C..........................................................32
Timer Mode ..........................................................................................................35
Event Counter Mode.............................................................................................35
Pulse Width Capture Mode...................................................................................36
Prescaler..............................................................................................................36
PFD Function .......................................................................................................37
I/O Interfacing.......................................................................................................37
Programming Considerations ...............................................................................38
Timer Program Example.......................................................................................38
Time Base ..........................................................................................39
Interrupts............................................................................................40
Interrupt Register..................................................................................................40
Interrupt Operation ...............................................................................................40
Interrupt Priority.....................................................................................................41
External Interrupt..................................................................................................41
Timer/Event Counter Interrupt ..............................................................................44
Time Base Interrupt ..............................................................................................44
Programming Considerations ...............................................................................44
SCOM Function for LCD ...................................................................44
LCD Operation .....................................................................................................44
LCD Bias Control..................................................................................................45
Application Circuits ..........................................................................46
Configuration Options ......................................................................46
Instruction Set ...................................................................................47
Introduction ..........................................................................................................47
Instruction Timing .................................................................................................47
Moving and Transferring Data ..............................................................................47
Arithmetic Operations...........................................................................................47
Logical and Rotate Operations .............................................................................47
Branches and Control Transfer.............................................................................47
Table Read Operations.........................................................................................48
Instruction Set Summary ......................................................................................48
Instruction Definition ........................................................................50
Rev. 1.00
4
April 7, 2011