PIC16F87XA
DS39582B-page 224 2003 Microchip Technology Inc.
MPLAB ICE 4000 High-Performance Universal
In-Circuit Emulator ...................................................169
MPLAB Integrated Development
Environment Software ..............................................167
MPLINK Object Linker/MPLIB Object Librarian ...............168
MSSP .................................................................................71
I2C Mode. See I2C.
SPI Mode ...................................................................71
SPI Mode. See SP I.
MSSP Module
Clock Stretching .........................................................90
Clock Synchronization and the CKP Bit .....................91
Control Registers (General) .......................................71
Operation ...................................................................84
Overview ....................................................................71
SPI Master Mode .......................................................76
SPI Slave Mode .........................................................77
SSPBUF .....................................................................76
SSPSR .......................................................................76
Multi-Master Mode ...........................................................105
O
Opcode Field Descriptions ...............................................159
OPTION_REG Register .....................................................23
INTEDG Bit ................................................................23
PS2:PS0 Bits ..............................................................23
PSA Bit .......................................................................23
RBPU Bit ....................................................................23
T0CS Bit .....................................................................23
T0SE Bit .....................................................................23
OSC1/CLKI Pin ..............................................................8, 10
OSC2/CLKO Pin ............................................................8, 10
Oscillator Configuration
HS ....................................................................145, 149
LP .....................................................................145, 149
RC ............................................................ 145, 146, 149
XT .....................................................................145, 149
Oscillator Selection ..........................................................143
Oscillator Start-up Timer (OST) ...............................143, 148
Oscillator, WDT ................................................................155
Oscillators
Capacitor Selection ..................................................146
Ceramic Resonator Selection ..................................145
Crystal and Ceramic Resonators .............................145
RC ............................................................................146
P
Package Information
Marking ....................................................................209
Packaging Information .....................................................209
Paging, Program Memory ..................................................30
Parallel Slave Port (PSP) ....................................... 13, 48, 51
Associated Registers .................................................52
RE0/RD/AN5 Pin ..................................................49, 51
RE1/WR/AN6 Pi n .................................................49, 51
RE2/CS/AN7 Pin ..................................................49, 51
Select (PSPMODE Bit) ..............................48, 49, 50, 51
Parallel Slave Port Requirements
(PIC16F874A/ 877A Only) .......................................187
PCL Register .......................................................... 19, 20, 30
PCLATH Register ................................................... 19, 20, 30
PCON Register .................................................... 20, 29, 149
BOR Bit ......................................................................29
POR Bit ......................................................................29
PIC16F87XA Product Identification System .....................231
PICkit 1 Flash Starter Kit ..................................................171
PICSTART Plus Deve lopment Program mer .................... 169
PIE1 Register ................................................................20, 25
PIE2 Register ................................................................20, 27
Pinout Descriptions
PIC16F873A/PIC16F876A ........................................... 8
PIR1 Register ...............................................................19, 26
PIR2 Register ...............................................................19, 28
POP ................................................................................... 30
POR. See Power-on Reset.
PORTA ...........................................................................8, 10
Associated Registers ................................................. 43
Functions ................................................................... 43
PORTA Register ...................................................19, 41
TRISA Register .......................................................... 41
PORTB ...........................................................................9, 11
Associated Registers ................................................. 45
Functions ................................................................... 45
PORTB Register ...................................................19, 44
Pull-up Enable (RBPU Bit) ......................................... 23
RB0/INT Edge Select (INTEDG Bit) .......................... 23
RB0/INT Pin, External .....................................9, 11, 154
RB7:RB4 Interrupt-on-Change ................................ 154
RB7:RB4 Interrupt-on-Change Enable
(RBIE Bit) ....................................................24, 154
RB7:RB4 Interrupt-on-Change Flag
(RBIF Bit) ..............................................24, 44, 154
TRISB Register .....................................................21, 44
PORTB Register ................................................................ 21
PORTC ...........................................................................9, 12
Associated Registers ................................................. 47
Functions ................................................................... 47
PORTC Register ...................................................19, 46
RC3/SCK/SCL Pin ..................................................... 85
RC6/TX/CK Pin ........................................................ 112
RC7/RX/DT Pin .................................................112, 113
TRISC Register ...................................................46, 111
PORTD .........................................................................13, 51
Associated Registers ................................................. 48
Functions ................................................................... 48
Parallel Slave Port (PSP) Function ............................ 48
PORTD Register ...................................................19, 48
TRISD Register .......................................................... 48
PORTE .............................................................................. 13
Analog Port Pins ...................................................49, 51
Associated Registers ................................................. 50
Functions ................................................................... 49
Input Buffer Full Status (IBF Bit) ................................ 50
Input Buffer Overflow (IBOV Bit) ................................ 50
Output Buffer Full Status (OBF Bit) ........................... 50
PORTE Register ...................................................19, 49
PSP Mode Select (PSPM ODE Bit) ...........48, 49, 50, 51
RE0/RD/AN5 Pin ..................................................49, 51
RE1/WR/AN6 Pin ..................................................49, 51
RE2/CS/AN7 Pin ...................................................49, 51
TRISE Register .......................................................... 49
Postscaler, WDT
Assignment (PSA Bit) ................................................ 23
Rate Select (PS2:PS0 Bits) ....................................... 23
Power-down Mode. See Sleep.
Power-on Reset (POR) .....................143, 147, 148, 149, 150
POR Status (POR Bit) ............................................... 29
Power Control (PCON) Register .............................. 149
Power-down (PD Bit) ..........................................22, 147
Power-up Timer (PW RT ) ......................................... 143
Time-out (TO Bit) ................................................22, 147