PIC16F818/819
DS39598F-page 168 2001-2013 Microchip Technology Inc.
Writing to Flash Program Memory .............................31
Code Protection .........................................................89, 100
Computed GOTO ...............................................................23
Configuration Bits ...............................................................89
Crystal Oscillator and Ceramic Resonators .......................33
Customer Change Notification Service ............................173
Customer Notification Service ..........................................173
Customer Support ............................................................173
D
Data EEPRO M Memory .....................................................25
Associated Registers .................................................32
EEADR Register ........................................................25
EEADRH Register ......................................................25
EECON1 Register ......................................................25
EECON2 Register ......................................................25
EEDATA Register ......................................................25
EEDATH Register ......................................................25
Operation During Code-Protect ..................................32
Protection Against Spurious Writes ............................32
Reading ......................................................................27
Write Interrupt Enable Flag (EEIF Bit) ........................25
Writing ........................................................................27
Data Memory
Special Function Registers ........................................13
DC and AC Characteristics
Graphs and Tables ...................................................141
DC Characteristics
Internal RC Accuracy ...............................................125
PIC16F818/819, PIC16LF818/819 ...........................126
Power-Down and Supply Current .............................118
Supply Voltage .........................................................117
Development Support ......................................................111
Device Differences ...........................................................165
Device Overview ..................................................................5
Direct Addressing ...............................................................24
E
EEADR Register ................................................................25
EEADRH Register ..............................................................25
EECON1 Register ..............................................................25
EECON2 Register ..............................................................25
EEDATA Register ..............................................................25
EEDATH Register ..............................................................25
Electrical Characteristics ..................................................115
Endurance ............................................................................1
Errata ...................................................................................3
External Clock Input ...........................................................34
External Interrupt Input (RB0/INT). See Interrupt Sources.
F
Flash Program Memory ......................................................25
Associated Registers .................................................32
EEADR Register ........................................................25
EEADRH Register ......................................................25
EECON1 Register ......................................................25
EECON2 Register ......................................................25
EEDATA Register ......................................................25
EEDATH Register ......................................................25
Erasing .......................................................................28
Reading ......................................................................28
Writing ........................................................................30
FSR Register .....................................................13, 14, 15, 23
G
General Purpose Register File ...........................................10
I
I/O Por ts ............................................................................. 39
I2CAssociated Registers ................................................. 79
Master Mode Operation ............................................. 79
Mode .......................................................................... 76
Mode Selection .......................................................... 76
Multi-Master Mode Operation .................................... 79
Slave Mode ................................................................ 77
Addressing ......................................................... 77
Reception .......................................................... 77
SCL, SDA Pins .................................................. 77
Transmission ..................................................... 77
ID Locations ................................................................89, 100
In-Circuit Debugger .......................................................... 100
In-Circuit Serial Programming ............................................ 89
In-Circuit Serial Programming (ICSP) .............................. 101
INDF Register .........................................................14, 15, 23
Indirect Addressing .......................................................23, 24
Instruction Format ............................................................ 103
Instruction Set .................................................................. 103
Descriptions ............................................................. 105
Read-Modify-Write Operations ................................ 103
Summary Table ....................................................... 104
ADDLW .................................................................... 105
ADDWF .................................................................... 105
ANDLW .................................................................... 105
ANDWF .................................................................... 105
BCF .......................................................................... 105
BSF .......................................................................... 105
BTFSC ..................................................................... 106
BTFSS ..................................................................... 106
CALL ........................................................................ 106
CLRF ....................................................................... 106
CLRW ...................................................................... 106
CLRWDT ................................................................. 106
COMF ...................................................................... 107
DECF ....................................................................... 107
DECFSZ .................................................................. 107
GOTO ...................................................................... 107
INCF ........................................................................ 107
INCFSZ .................................................................... 107
IORLW ..................................................................... 108
IORWF ..................................................................... 108
MOVF ...................................................................... 108
MOVLW ................................................................... 108
MOVWF ................................................................... 108
NOP ......................................................................... 108
RETFIE .................................................................... 109
RETLW .................................................................... 109
RETURN .................................................................. 109
RLF .......................................................................... 109
RRF ......................................................................... 109
SLEEP ..................................................................... 109
SUBLW .................................................................... 110
SUBWF .................................................................... 110
SWAPF .................................................................... 110
XORLW .................................................................... 110
XORWF ................................................................... 110
INT Interrup t ( RB0 /INT). See Interrupt Sources.
INTCON Register ............................................................... 15
GIE Bit ....................................................................... 18
INTE Bit ..................................................................... 18
INTF Bit ...................................................................... 18
RBIF Bit ..................................................................... 18