English
Language : 

PIC16F870_13 Datasheet, PDF (163/172 Pages) Microchip Technology – 28/40-Pin, 8-Bit CMOS FLASH Microcontrollers
Interrupts, Enable Bits
Global Interrupt Enable (GIE Bit) .......................... 18, 96
Interrupt-on-Change (RB7:RB4) Enable
(RBIE Bit) ...................................................... 18, 97
Peripheral Interrupt Enable (PEIE Bit) ........................ 18
RB0/INT Enable (INTE Bit) ......................................... 18
TMR0 Overflow Enable (T0IE Bit)............................... 18
Interrupts, Flag Bits
Interrupt-on-Change (RB7:RB4)
Flag (RBIF Bit) ........................................ 18, 35, 97
RB0/INT Flag (INTF Bit).............................................. 18
TMR0 Overflow Flag (T0IF Bit) ................................... 97
L
Loading of PC ..................................................................... 24
Low Voltage In-Circuit Serial Programming ................ 87, 102
M
Master Clear (MCLR)
MCLR Reset, Normal Operation ........................... 91, 93
MCLR Reset, SLEEP............................................ 91, 93
MCLR/VPP/THV Pin .......................................................... 7, 8
Memory Organization
Data Memory .............................................................. 11
Program Memory ........................................................ 11
Migration from High-End to Enhanced Devices ................ 159
Migration from Mid-Range to Enhanced Devices ............. 158
MPLAB ASM30 Assembler, Linker, Librarian ................... 112
MPLAB ICD 2 In-Circuit Debugger ................................... 113
MPLAB ICE 2000 High Performance Universal
In-Circuit Emulator .................................................... 113
MPLAB ICE 4000 High Performance Universal
In-Circuit Emulator .................................................... 113
MPLAB Integrated Development
Environment Software............................................... 111
MPLINK Object Linker/MPLIB Object Librarian ................ 112
O
OPCODE Field Descriptions ............................................. 103
OPTION .............................................................................. 15
OPTION Register ................................................................ 15
OPTION_REG Register ................................................ 14, 17
INTEDG Bit ................................................................. 17
PSA Bit........................................................................ 17
RBPU Bit..................................................................... 17
T0CS Bit...................................................................... 17
T0SE Bit...................................................................... 17
OSC1/CLKI Pin ................................................................. 7, 8
OSC2/CLKO Pin ............................................................... 7, 8
Oscillator Configuration....................................................... 87
HS ......................................................................... 89, 92
LP.......................................................................... 89, 92
RC................................................................... 89, 90, 92
XT ......................................................................... 89, 92
Oscillator, WDT ................................................................... 99
Oscillators
Capacitor Selection..................................................... 90
Crystal and Ceramic Resonators ................................ 89
RC............................................................................... 90
PIC16F870/871
P
Packaging ......................................................................... 149
Marking Information.................................................. 149
Parallel Slave Port (PSP).......................................... 9, 38, 42
Associated Registers.................................................. 43
RE0/RD/AN5 Pin .................................................. 41, 42
RE1/WR/AN6 Pin ................................................. 41, 42
RE2/CS/AN7 Pin .................................................. 41, 42
Select (PSPMODE Bit) ............................. 38, 39, 40, 42
PCL Register .................................................... 13, 14, 15, 24
PCLATH Register ............................................. 13, 14, 15, 24
PCON Register ....................................................... 14, 15, 92
BOR Bit....................................................................... 23
POR Bit....................................................................... 23
PICkit 1 FLASH Starter Kit................................................ 115
PICSTART Plus Development Programmer..................... 113
PIE1 Register ............................................................... 14, 15
PIE2 Register ............................................................... 14, 15
Pinout Descriptions
PIC16F870 ................................................................... 7
PIC16F871 ................................................................... 8
PIR1 Register ..................................................................... 13
PIR2 Register ..................................................................... 13
POP .................................................................................... 24
POR. See Power-on Reset.
PORTA ............................................................................. 7, 8
Associated Registers.................................................. 34
PORTA Register......................................................... 33
RA0/AN0 Pin ............................................................ 7, 8
RA1/AN1 Pin ............................................................ 7, 8
RA2/AN2/VREF- Pin ...................................................... 7
RA2/AN2/VREF- Pin ...................................................... 8
RA3/AN3/VREF+ Pin ..................................................... 7
RA3/AN3/VREF+ Pin ..................................................... 8
RA4/T0CKI Pin ......................................................... 7, 8
RA5/AN4 Pin ............................................................ 7, 8
TRISA Register........................................................... 33
PORTA Register ................................................................. 13
PORTB ............................................................................. 7, 8
PORTB Register......................................................... 35
Pull-up Enable (RBPU Bit).......................................... 17
RB0/INT Edge Select (INTEDG Bit) ........................... 17
RB0/INT Pin.............................................................. 7, 8
RB0/INT Pin, External ................................................ 97
RB1 Pin .................................................................... 7, 8
RB2 Pin .................................................................... 7, 8
RB3/PGM Pin ........................................................... 7, 8
RB4 Pin .................................................................... 7, 8
RB5 Pin .................................................................... 7, 8
RB6/PGC Pin............................................................ 7, 8
RB7/PGD Pin............................................................ 7, 8
RB7:RB4 Interrupt-on-Change ................................... 97
RB7:RB4 Interrupt-on-Change
Enable (RBIE Bit) ......................................... 18, 97
RB7:RB4 Interrupt-on-Change
Flag (RBIF Bit)........................................ 18, 35, 97
TRISB Register........................................................... 35
PORTB Register ........................................................... 13, 15
 2000-2013 Microchip Technology Inc.
DS30569C-page 163