
Special Function Registers .......................................................................................... 23
Indirect Addressing Registers -IAR, IAR0, IAR1 ................................................ 24
Memory Pointers -MP, MP0, MP1 ....................................................................... 24
Accumulator -ACC ............................................................................................... 25
Program Counter Low Register -PCL ......................................................................... 25
Look-up Table Registers -TBLP, TBLH ................................................................ 25
Watchdog Timer Register -WDTS ....................................................................... 25
Status Register -STATUS .................................................................................... 25
Interrupt Control Register -INTC ......................................................................... 26
Timer/Event Counter Registers ............................................................................ 27
Input/Output Ports and Control Registers ............................................................. 27
Input/Output Ports ........................................................................................................ 27
Pull-high Resistors ................................................................................................ 27
Port A Wake-up ..................................................................................................... 28
I/O Port Control Registers .................................................................................... 28
Pin-shared Functions ............................................................................................ 28
Programming Considerations ................................................................................ 30
Timer/Event Counters .................................................................................................. 31
Configuring the Timer/Event Counter Input Clock Source .................................... 31
Timer Registers -TMR, TMR0, TMR0L/TMR0H, TMR1L/TMR1H ....................... 32
Timer Control Registers -TMRC, TMR0C, TMR1C ............................................. 33
Configuring the Timer Mode .................................................................................. 34
Configuring the Event Counter Mode .................................................................... 35
Configuring the Pulse Width Measurement Mode ................................................. 35
Programmable Frequency Divider (PFD) and Buzzer Application ........................ 36
Prescaler ............................................................................................................... 37
I/O Interfacing ........................................................................................................ 37
Programming Considerations ................................................................................ 37
Interrupts ......................................................................................................................38
External Interrupt ................................................................................................... 39
Timer/Event Counter Interrupt ............................................................................... 39
Interrupt Priority ..................................................................................................... 40
Programming Considerations ................................................................................ 40
Reset and Initialization ................................................................................................. 41
Reset ..................................................................................................................... 41
Oscillator ......................................................................................................................48
System Clock Configurations ................................................................................ 48
System Crystal/Ceramic Oscillator ........................................................................ 48
System RC Oscillator ............................................................................................. 49
Internal System RC Oscillator ................................................................................ 49
RTC Oscillator........................................................................................................ 49
Watchdog Timer Oscillator .................................................................................... 50
HALT and Wake-up in Power Down Mode .................................................................. 50
Watchdog Timer ........................................................................................................... 51
Configuration Options .................................................................................................. 52
Application Circuits ...................................................................................................... 53
ii
I/O Type MCU