PIC16F870/871
DS30569C-page 164 2000-2013 Microchip Technology Inc.
PORTC..............................................................................7, 8
Associ a te d Re g i sters ............ .......... ........... .................37
PORTC Register.........................................................37
RC0/T1OSO/T1CKI Pin .......... ........... .......... .............7, 8
RC1/T1OSI Pin .........................................................7, 8
RC2/CCP1 Pin..........................................................7, 8
RC3 Pin.....................................................................7, 8
RC4 Pin.....................................................................7, 8
RC5 Pin.....................................................................7, 8
RC6/TX/CK Pin...................................................7, 8, 62
RC7/RX/DT Pin.............................................7, 8, 62, 63
TRISC Register.......... ........... ..................... ...........37, 61
PORTC Register.................................................................13
PORTD............................................................................9, 42
Associ a te d Re g i sters ............ .......... ........... .................38
Paral l e l Sla ve Port (PSP) Funct i o n.......... .......... .........38
PORTD Register.........................................................38
RD0/PSP0 Pin .............. ..................... .......... .................9
RD1/PSP1 Pin .............. ..................... .......... .................9
RD2/PSP2 Pin .............. ..................... .......... .................9
RD3/PSP3 Pin .............. ..................... .......... .................9
RD4/PSP4 Pin .............. ..................... .......... .................9
RD5/PSP5 Pin .............. ..................... .......... .................9
RD6/PSP6 Pin .............. ..................... .......... .................9
RD7/PSP7 Pin .............. ..................... .......... .................9
TRISD Register.................................... .......... .............38
PORTD Register.................................................................13
PORTE..................................................................................9
Analog Port Pins ...................................................41, 42
Associ a te d Re g i sters ............ .......... ........... .................41
Input Buffer Full Status (IBF Bit) .................................40
Input Buffer Overflow (IBOV Bit)..... ............................40
Output Buffer Full Status (OBF Bit).............................40
PORTE Register.........................................................39
PSP Mode Select (PSPM ODE Bit) ...........38, 3 9, 40, 42
RE0/RD/AN5 Pin ...............................................9, 41, 42
RE1/WR/AN6 Pin..............................................9, 41, 42
RE2/CS/AN7 Pin...............................................9, 41, 42
TRISE Register...........................................................39
PORTE Register .................................................................13
Postscaler, WDT
Assignment (PSA Bit) ................... ........... .......... .........17
Power-down Mode. See SLEEP.
Power-on Reset (POR).....................................87, 91, 92, 93
Oscillator Start-up Timer (OST)............................87, 92
POR Status (PO R Bit)................. ........... .......... ...........23
Power Contro l (PCON) Register............ .....................92
Power-down (PD Bit) ..................................................91
Power-up Timer (PWRT) ...... ............................... .87, 92
Time-out (TO Bit)..... ..................... ........... .......... .........91
PR2.....................................................................................15
PR2 Register.................................................................14, 53
Prescaler, Timer0
Assignment (PSA Bit) ................... ........... .......... .........17
PRO MATE II Universal Device Programmer ...................113
Product Identification System............................................169
Program Counter
RESET Conditions...................... .. ......... .. .... .. .... .. .......93
Program Memory ................................................................11
Inter rupt Vector................. .......... ........... .......... ...........11
Map and Stack............................................................11
Paging.........................................................................24
RESET Vec tor................... .......... ........... .......... ...........11
Program Verification..........................................................101
Programming, Device Instructions....................................103
Pulse Width Modulation.
See Capture/Compare/PW M , PWM Mode.
PUSH.................................................................................. 24
R
RAM. See Data Me mory.
RCREG Register ................................................ ................ 13
RCSTA Regist e r...... ........... .......... ..................... ................. 13
ADDEN Bit.................................................................. 62
CREN Bit....... ........... ..................... .......... ................... 62
FERR Bi t... ...... .. ..... .. ...... .. ...... .. ..... .. ...... ...... .. ..... .. ...... . 62
OERR Bit.................................................................... 62
RX9 Bi t . .. ...... .. ..... .. ...... .. ...... .. ..... .. ...... ...... .. ..... .. ...... .. . 62
RX9D Bit..................................................................... 62
SPEN Bi t... .. ...... .. ..... .. .. ...... .. .. ..... .. .. ...... .. ...... . ...... . 61, 62
SREN Bit ................ .......... ........... ..................... .......... 62
Register File........................................................................ 11
Register File Map................ ................................................ 12
Registers
ADCON0 (A/D Control 0)............................................ 79
ADCON1 (A/D Control 1)............................................ 80
CCP 1 C ON (CCP Con tr o l 1 )... .. ..... ...... .. ...... ..... .. ...... ... 55
EECON1 (EEPROM Control 1) .................................. 28
INTCON...................................................................... 18
OPTION_REG...................................................... 17, 46
PCON (Powe r C o n tro l ) ...... .. ..... .. ...... .. ...... .. ..... .. ...... .. . 23
PIE1 (Peripheral Interrupt Enable 1)........................... 19
PIE2 (Peripheral Interrupt Enable 2)........................... 21
PIR1 (Peripheral Interrupt Request Flag 1)................ 20
PIR2 (Peripheral Interrupt Request Flag 2)................ 22
RCSTA (Receive Status and Control) ........................ 62
STATUS ..................................................................... 16
T1CON (Timer1 Control) ............................................ 49
T2CON (Timer 2 Control) ........................................... 53
TRISE......................................................................... 40
TXSTA (Transmit Status and Control)........................ 61
Reset ............................................................................ 87, 91
MCLR Reset. See MCL R.
RESET Conditions for All Registers ........................... 93
RESET Conditions for PCON Register. ...................... 93
RESET Conditions for Program Counter.................... 93
RESET Conditions for STATUS Register................... 93
Reset
Brown-out Reset (BOR). See Brown-out Reset (BOR).
Power-on Reset (POR). See Power-on Reset (POR).
WDT Reset. See Watchdog Timer (WDT).
Revision History................................................................ 157
S
SCI. See USART
Serial Communication Interface. See USART.
SLEEP......... .......... ........... .......... ............... ........... 87, 91, 100
Software Simulator (MPLAB SIM) .................................... 112
Software Simulator (MPLAB SIM30) ................................ 112
SPBRG............................................................................... 15
SPBRG Register................................................................. 14
Special Features of the CPU .............................................. 87
Special Function Registers................................................. 13
Special Function Register Summary .......................... 13
Speed, Operating.................................................................. 1
SSPADD Regist e r.... ........... ................................................ 15
SSPSTAT Regi ster............. .......... ..................... ........... ...... 15
Stack................................................................................... 24
Overflows.................................................................... 24
Underflow ................................................................... 24