Datasheet

PIC16F870/871
DS30569C-page 162 2000-2013 Microchip Technology Inc.
D
Data EEPROM....................................................................27
Associated Registers ..................................................32
Code Protection ..........................................................31
Reading.......................................................................29
Spurious Write Protection ...........................................31
Write Verify .................................................................31
Writing to.....................................................................29
Data Memory.......................................................................11
Bank Select (RP1:RP0 Bits) .......................................11
General Purpose Registers.........................................11
Register File Map........................................................12
Special Function Registers .........................................13
DC and AC Characteristics Graphs and Tables................137
DC Characteristics
PIC16F870/871 (Extended) ......................................123
PIC16F870/871 (Industrial).......................................121
PIC16F870/871 (Industrial, Extended) and
PIC16LF870/871 (Commercial, Industrial)........ 119
Demonstration Boards
PICDEM 1.................................................................114
PICDEM 17...............................................................114
PICDEM 18R PIC18C601/801..................................115
PICDEM 2 Plus.........................................................114
PICDEM 3 PIC16C92X .............................................114
PICDEM 4.................................................................114
PICDEM LIN PIC16C43X .........................................115
PICDEM USB PIC16C7X5........................................115
PICDEM.net Internet/Ethernet ..................................114
Development Support .......................................................111
Device Differences............................................................157
Device Overview ...................................................................5
Direct Addressing................................................................25
E
EEADR Register .................................................................15
EEADRH Register...............................................................15
EECON1 Register.........................................................15, 27
EECON2 Register.........................................................15, 27
EEDATA Register ...............................................................15
EEDATH Register ...............................................................15
Electrical Characteristics...................................................117
Errata ....................................................................................4
Evaluation and Programming Tools..................................115
F
Firmware Instructions........................................................103
FLASH Program Memory....................................................27
Associated Registers ..................................................32
Code Protection ..........................................................31
Configuration Bits and Read/Write State ....................32
Reading.......................................................................30
Spurious Write Protection ...........................................31
Write Protection ..........................................................32
Write Verify .................................................................31
Writing to.....................................................................30
FSR Register...........................................................13, 14, 15
I
I/O Ports..............................................................................33
ID Locations ................................................................87, 101
In-Circuit Debugger.....................................................87, 101
In-Circuit Serial Programming (ICSP) .........................87, 102
INDF Register .........................................................13, 14, 15
Indirect Addressing............................................................. 25
FSR Register........................................................ 11, 24
INDF Register............................................................. 24
Instruction Descriptions .................................................... 105
Instruction Format............................................................. 103
Instruction Set................................................................... 103
ADDLW..................................................................... 105
ADDWF..................................................................... 105
ANDLW..................................................................... 105
ANDWF..................................................................... 105
BCF .......................................................................... 105
BSF........................................................................... 105
BTFSC...................................................................... 105
BTFSS...................................................................... 105
CALL......................................................................... 106
CLRF ........................................................................ 106
CLRW ....................................................................... 106
CLRWDT .................................................................. 106
COMF ....................................................................... 106
DECF........................................................................ 106
DECFSZ ................................................................... 107
GOTO ....................................................................... 107
INCF ......................................................................... 107
INCFSZ..................................................................... 107
IORLW...................................................................... 107
IORWF...................................................................... 107
MOVF ....................................................................... 108
MOVLW.................................................................... 108
MOVWF.................................................................... 108
NOP.......................................................................... 108
RETFIE..................................................................... 108
RETLW ..................................................................... 108
RETURN................................................................... 109
RLF........................................................................... 109
RRF .......................................................................... 109
SLEEP...................................................................... 109
SUBLW..................................................................... 109
SUBWF..................................................................... 109
SWAPF..................................................................... 110
XORLW .................................................................... 110
XORWF .................................................................... 110
Summary Table ........................................................ 104
INT Interrupt (RB0/INT). See Interrupt Sources.
INTCON.............................................................................. 15
INTCON Register.......................................................... 13, 15
GIE Bit ........................................................................ 18
INTE Bit ...................................................................... 18
INTF Bit ...................................................................... 18
PEIE Bit ...................................................................... 18
RBIE Bit ...................................................................... 18
RBIF Bit ................................................................ 18, 35
T0IE Bit....................................................................... 18
Internal Sampling Switch (Rss) Impedance........................ 82
Interrupt Sources .......................................................... 87, 96
Interrupt-on-Change (RB7:RB4)................................. 35
RB0/INT Pin, External................................................. 97
TMR0 Overflow........................................................... 97
USART Receive/Transmit Complete .......................... 61
Interrupts, Context Saving During....................................... 98