
Special Function Registers .......................................................................................... 34
Indirect Addressing Registers -IAR0, IAR1 .......................................................... 34
Memory Pointers -MP0, MP1 ............................................................................... 34
Bank Pointer -BP.................................................................................................. 35
Accumulator -ACC................................................................................................ 35
Program Counter Low Register -PCL ......................................................................... 35
Look-up Table Registers -TBLP, TBLH ................................................................ 35
Real Time Clock -RTCC ....................................................................................... 36
Status Register -STATUS ..................................................................................... 37
Interrupt Control Registers -INTC0, INTC1 ......................................................... 37
Timer/Event Counter Registers ............................................................................ 38
Input/Output Ports and Control Registers ............................................................. 38
Pulse Width Modulator Registers -PWM0, PWM1, PWM2, PWM3 ..................... 39
A/D Converter Registers -ADR, ADRL, ADRH, ADCR, ADSR ............................ 39
Input/Output Ports ........................................................................................................ 39
Pull-high Resistors ................................................................................................ 39
Port A Wake-up ..................................................................................................... 39
I/O Port Control Registers .................................................................................... 40
Pin-shared Functions ............................................................................................ 40
Programming Considerations ................................................................................ 43
Comparator .................................................................................................................. 44
Liquid Crystal Display (LCD) Driver ............................................................................. 44
LCD Memory ......................................................................................................... 44
LCD Clock ............................................................................................................. 46
LCD Driver Output ................................................................................................. 46
LCD Voltage Source and Biasing .......................................................................... 53
Programming Considerations ................................................................................ 55
Timer/Event Counters .................................................................................................. 57
Configuring the Timer/Event Counter Input Clock Source .................................... 57
Timer Registers -TMR, TMRL/TMRH, TMR0L/TMR0H, TMR1L/TMR1H ............ 59
Timer Control Registers -TMRC, TMR0C, TMR1C ............................................. 60
Configuring the Timer Mode .................................................................................. 62
Configuring the Event Counter Mode .................................................................... 63
Configuring the Pulse Width Measurement Mode ................................................ 63
Programmable Frequency Divider -PFD ............................................................. 64
Prescaler ................................................................................................................ 65
I/O Interfacing ........................................................................................................ 65
Programming Considerations ................................................................................ 65
Pulse Width Modulator ................................................................................................. 66
6+2 PWM Mode .................................................................................................... 67
7+1 PWM Mode .................................................................................................... 68
PWM Output Control ............................................................................................. 69
ii
A/D with LCD Type MCU