
Data Memory ................................................................................................................25
Organization ...........................................................................................................25
General Purpose Data Memory .............................................................................26
Special Purpose Data Memory ..............................................................................27
LCD Memory ..........................................................................................................27
Special Function Registers ...........................................................................................28
Indirect Addressing Registers -IAR0, IAR1 ..........................................................28
Memory Pointers -MP0, MP1 ...............................................................................28
Bank Pointer -BP ..................................................................................................29
Accumulator -ACC ................................................................................................29
Program Counter Low Register -PCL ...................................................................30
Look-up Table Registers -TBLP, TBLH .................................................................30
Real Time Clock Control Register -RTCC ............................................................30
Status Register -STATUS .....................................................................................31
Interrupt Control Registers -INTC0, INTC1 ..........................................................32
Timer/Event Counter Registers ..............................................................................32
Input/Output Port Registers ....................................................................................33
Input/Output Ports .........................................................................................................33
Pull-high Resistors .................................................................................................33
Port A Wake-up ......................................................................................................34
Pin-shared Functions .............................................................................................34
Programming Considerations .................................................................................36
Liquid Crystal Display (LCD) Driver ..............................................................................37
LCD Memory ..........................................................................................................37
LCD Clock ..............................................................................................................38
LCD Driver Output ..................................................................................................39
LCD Voltage Source and Biasing ...........................................................................44
Programming Considerations .................................................................................45
Timer/Event Counters ...................................................................................................46
Configuring the Timer/Event Counter Input Clock Source .....................................47
Timer Registers -TMR, TMR0, TMR1, TMR1L/TMR1H .......................................48
Timer Control Registers -TMRC, TMR0C, TMR1C ..............................................49
Configuring the Timer Mode ...................................................................................51
Configuring the Event Counter Mode .....................................................................51
Configuring the Pulse Width Measurement Mode ..................................................52
Programmable Frequency Divider -PFD ..............................................................53
I/O Interfacing .........................................................................................................53
Programming Considerations .................................................................................54
Interrupts .......................................................................................................................55
Interrupt Registers...................................................................................................55
Interrupt Priority ......................................................................................................58
External Interrupt ....................................................................................................59
Timer/Event Counter Interrupt ................................................................................59
Time Base Interrupt ................................................................................................59
Real Time Clock Interrupt .......................................................................................60
Programming Considerations .................................................................................61
ii
LCD Type MCU