Contents
Special Function Register Description ...........................................23
Indirect Addressing Registers
-
IAR0, IAR1..........................................................23
Memory Pointers
-
MP0, MP1 ..............................................................................23
Bank Pointer
-
BP ................................................................................................25
Accumulator
-
ACC ..............................................................................................26
Program Counter Low Register
-
PCL..................................................................26
Look-up Table Registers
-
TBLP, TBHP, TBLH.....................................................26
Status Register
-
STATUS ...................................................................................26
EEPROM Data Memory .....................................................................28
EEPROM Data Memory Structure ........................................................................28
Reading Data from the EEPROM .........................................................................30
Writing Data to the EEPROM ...............................................................................30
Write Protection ....................................................................................................30
EEPROM Interrupt ...............................................................................................30
Programming Considerations ...............................................................................31
Programming Examples .......................................................................................31
Oscillator............................................................................................32
Oscillator Overview...............................................................................................32
System Clock Configurations................................................................................32
Internal High Speed RC Oscillator
-
HIRC............................................................32
Internal Low Speed RC Oscillator
-
LIRC .............................................................33
Operating Modes and System Clocks .............................................34
System Clocks......................................................................................................34
Control Register ...................................................................................................35
System Operation Modes .....................................................................................36
Operating Mode Switching....................................................................................37
NORMAL Mode to SLOW Mode Switching...........................................................38
SLOW Mode to NORMAL Mode Switching...........................................................38
Entering the SLEEP Mode....................................................................................38
Entering the IDLE0 Mode .....................................................................................39
Entering the IDLE1 Mode .....................................................................................39
Standby Current Considerations...........................................................................39
Wake-up...............................................................................................................40
Programming Considerations ...............................................................................40
Watchdog Timer ................................................................................41
Watchdog Timer Clock Source .............................................................................41
Watchdog Timer Control Register.........................................................................41
Watchdog Timer Operation...................................................................................42
Reset and Initialisation .....................................................................43
Reset Functions ...................................................................................................43
Reset Initial Conditions .........................................................................................44
ii