English
Language : 

PIC16F87_05 Datasheet, PDF (220/228 Pages) Microchip Technology – 18/20/28-Pin Enhanced Flash Microcontrollers with nanoWatt Technology
PIC16F87/88
Interrupts, Enable Bits
A/D Converter Interrupt Enable (ADIE Bit) ................. 20
AUSART Receive Interrupt Enable (RCIE Bit) ........... 20
AUSART Transmit Interrupt Enable (TXIE Bit) .......... 20
CCP1 Interrupt Enable (CCP1IE Bit) ......................... 20
Comparator Interrupt Enable (CMIE Bit) .................... 22
EEPROM Write Operation Interrupt
Enable (EEIE Bit) ............................................... 22
Global Interrupt Enable (GIE Bit) ....................... 19, 138
Interrupt-on-Change (RB7:RB4)
Enable (RBIE Bit) ............................................. 140
Oscillator Fail Interrupt Enable (OSFIE Bit) ............... 22
Peripheral Interrupt Enable (PEIE Bit) ....................... 19
Port Change Interrupt Enable (RBIE Bit) ................... 19
RB0/INT Enable (INT0IE Bit) ..................................... 19
Synchronous Serial Port (SSP)
Interrupt Enable (SSPIE Bit) .............................. 20
TMR0 Overflow Enable (TMR0IE Bit) ........................ 19
TMR1 Overflow Interrupt Enable
(TMR1IE Bit) ...................................................... 20
TMR2 to PR2 Match Interrupt Enable
(TMR2IE Bit) ...................................................... 20
Interrupts, Flag Bits
A/D Converter Interrupt Flag (ADIF Bit) ..................... 21
AUSART Receive Interrupt Flag (RCIF Bit) ............... 21
AUSART Transmit Interrupt Flag (TXIF Bit) ............... 21
CCP1 Interrupt Flag (CCP1IF Bit) .............................. 21
Comparator Interrupt Flag (CMIF Bit) ........................ 23
EEPROM Write Operation Interrupt
Flag (EEIF Bit) ................................................... 23
Interrupt-on-Change (RB7:RB4)
Flag (RBIF Bit) ........................................... 19, 140
Oscillator Fail Interrupt Flag (OSFIF Bit) .................... 23
RB0/INT Flag (INT0IF Bit) .......................................... 19
Synchronous Serial Port (SSP) Interrupt
Flag (SSPIF Bit) ................................................. 21
TMR0 Overflow Flag (TMR0IF Bit) .......................... 140
TMR1 Overflow Interrupt Flag (TMR1IF Bit) .............. 21
TMR2 to PR2 Interrupt Flag (TMR2IF Bit) ................. 21
INTRC Modes
Adjustment ................................................................. 38
L
Loading of PC .................................................................... 25
Low-Voltage ICSP Programming ..................................... 148
M
Master Clear (MCLR)
MCLR Reset, Normal Operation ...................... 132, 135
MCLR Reset, Sleep ......................................... 132, 135
Operation and ESD Protection ................................. 133
Memory Organization ......................................................... 11
Data Memory ............................................................. 11
Program Memory ....................................................... 11
Microchip Internet Web Site ............................................. 223
MPLAB ASM30 Assembler, Linker, Librarian .................. 158
MPLAB ICD 2 In-Circuit Debugger ................................... 159
MPLAB ICE 2000 High-Performance
Universal In-Circuit Emulator ................................... 159
MPLAB ICE 4000 High-Performance
Universal In-Circuit Emulator ................................... 159
MPLAB Integrated Development
Environment Software .............................................. 157
MPLAB PM3 Device Programmer .................................... 159
MPLINK Object Linker/MPLIB Object Librarian ............... 158
O
Opcode Field Descriptions ............................................... 149
OPTION_REG Register
INTEDG Bit ................................................................ 18
PS2:PS0 Bits ............................................................. 18
PSA Bit ...................................................................... 18
RBPU Bit ................................................................... 18
T0CS Bit .................................................................... 18
T0SE Bit .................................................................... 18
OSCCON Register ............................................................. 15
Oscillator Configuration ..................................................... 35
ECIO .......................................................................... 35
EXTRC .................................................................... 134
HS ...................................................................... 35, 134
INTIO1 ....................................................................... 35
INTIO2 ....................................................................... 35
INTRC ...................................................................... 134
LP ...................................................................... 35, 134
RC ....................................................................... 35, 37
RCIO .......................................................................... 35
XT ...................................................................... 35, 134
Oscillator Control Register
Modifying IRCF Bits ................................................... 41
Oscillator Delay upon Power-up, Wake-up
and Clock Switching .................................................. 42
Oscillator Start-up Timer (OST) ............................... 129, 133
Oscillator Switching ........................................................... 39
OSCTUNE Register ........................................................... 15
P
Packaging Information ..................................................... 207
Marking .................................................................... 207
Paging, Program Memory .................................................. 25
PCL Register ......................................................... 14, 15, 25
PCLATH Register .................................................. 14, 15, 25
PCON Register .......................................................... 15, 134
BOR Bit ...................................................................... 24
POR Bit ...................................................................... 24
PICkit 1 Flash Starter Kit ................................................. 161
PICSTART Plus Development Programmer .................... 160
PIE1 Register ..................................................................... 15
ADIE Bit ..................................................................... 20
CCP1IE Bit ................................................................ 20
RCIE Bit ..................................................................... 20
SSPIE Bit ................................................................... 20
TMR1IE Bit ................................................................ 20
TMR2IE Bit ................................................................ 20
TXIE Bit ..................................................................... 20
PIE2 Register ..................................................................... 15
CMIE Bit .................................................................... 22
EEIE Bit ..................................................................... 22
OSFIE Bit ................................................................... 22
Pinout Descriptions
PIC16F87/88 ............................................................... 8
PIR1 Register .................................................................... 14
ADIF Bit ..................................................................... 21
CCP1IF Bit ................................................................. 21
RCIF Bit ..................................................................... 21
SSPIF Bit ................................................................... 21
TMR1IF Bit ................................................................. 21
TMR2IF Bit ................................................................. 21
TXIF Bit ...................................................................... 21
DS30487C-page 218
 2005 Microchip Technology Inc.