Datasheet
2000-2013 Microchip Technology Inc. DS30569C-page 161
PIC16F870/871
INDEX
A
A/D......................................................................................79
Acquisition Requirements ........................................... 82
ADCON0 Register.......................................................79
ADCON1 Register.......................................................79
ADIF Bit.......................................................................80
ADRESH Register.......................................................79
ADRESL Register ....................................................... 79
Analog Port Pins ...................................................41, 42
Associated Registers and Bits ....................................85
Calculating Acquisition Time....................................... 82
Configuring Analog Port Pins......................................83
Configuring the Interrupt .............................................81
Configuring the Module...............................................81
Conversion Clock........................................................ 83
Conversions................................................................84
Delays.........................................................................82
Effects of a RESET.....................................................85
GO/DONE
Bit.............................................................. 80
Internal Sampling Switch (Rss) Impedance ................ 82
Operation During SLEEP............................................ 85
Result Registers.......................................................... 84
Source Impedance...................................................... 82
Time Delays................................................................ 82
Absolute Maximum Ratings .............................................. 117
ADCON0 Register............................................................... 13
ADCON1 Register............................................................... 14
ADRESH Registers.............................................................13
ADRESL Register ...............................................................14
Analog-to-Digital Converter. See A/D.
Application Notes
AN552 (Implementing Wake-up on Key Stroke) ......... 35
AN556 (Implementing a Table Read) ......................... 24
Assembler
MPASM Assembler................................................... 111
Asynchronous Reception
Associated Registers .................................................. 69
Asynchronous Reception (9-bit Mode)
Associated Registers .................................................. 71
B
Banking, Data Memory .......................................................11
Baud Rate Generator (BRG)
Associated Registers .................................................. 63
Block Diagrams
A/D..............................................................................81
Analog Input Model..................................................... 82
Capture Mode Operation ............................................ 56
Compare Mode Operation .......................................... 57
Interrupt Logic.............................................................97
On-Chip RESET Circuit ..............................................91
PIC16F870....................................................................5
PIC16F871....................................................................6
PORTC (Peripheral Output Override)......................... 37
PORTD (In I/O Port Mode)..........................................38
PORTD and PORTE (Parallel Slave Port)..................42
PORTE (In I/O Port Mode).......................................... 39
PWM Mode ................................................................. 58
RA3:RA0 and RA5 Pins.............................................. 33
RA4/T0CKI Pin............................................................ 33
RB3:RB0 Pins.............................................................35
RB7:RB4 Pins.............................................................35
Timer0/WDT Prescaler ...............................................45
Timer1 ........................................................................ 50
Timer2 ........................................................................ 53
USART Asynchronous Receive.................................. 68
USART Asynchronous Receive (9-bit Mode) ............. 70
USART Transmit ........................................................ 66
Watchdog Timer ......................................................... 99
BOR. See Brown-out Reset.
BRGH Bit............................................................................ 63
Brown-out Reset (BOR).................................... 87, 91, 92, 93
BOR Status (BOR
Bit) ................................................ 23
C
C Compilers
MPLAB C17.............................................................. 112
MPLAB C18.............................................................. 112
MPLAB C30.............................................................. 112
Capture/Compare/PWM (CCP) .......................................... 55
Associated Registers
Capture, Compare and Timer1........................... 59
PWM and Timer2................................................ 60
Capture Mode............................................................. 56
CCP1IF............................................................... 56
Prescaler ............................................................ 56
CCP Timer Resources................................................ 55
Compare
Special Trigger Output of CCP1......................... 57
Compare Mode........................................................... 57
Software Interrupt Mode..................................... 57
Special Event Trigger......................................... 57
PWM Mode................................................................. 58
Duty Cycle .......................................................... 58
Example Frequencies/Resolutions (table).......... 59
PWM Period ....................................................... 58
Setup for PWM Operation .................................. 59
Special Event Trigger and A/D Conversions .............. 57
CCP. See Capture/Compare/PWM.
CCP1CON Register............................................................ 13
CCP1M0 Bit........................................................................ 55
CCP1M1 Bit........................................................................ 55
CCP1M2 Bit........................................................................ 55
CCP1M3 Bit........................................................................ 55
CCP1X Bit .......................................................................... 55
CCP1Y Bit .......................................................................... 55
CCPR1H Register......................................................... 13, 55
CCPR1L Register ......................................................... 13, 55
Code Examples
Changing Between Capture Prescalers ..................... 56
EEPROM Data Read.................................................. 29
EEPROM Data Write.................................................. 29
FLASH Program Read................................................ 30
FLASH Program Write................................................ 31
Indirect Addressing..................................................... 24
Initializing PORTA ...................................................... 33
Saving STATUS, W and PCLATH Registers
in RAM................................................................ 98
Code Protected Operation
Data EEPROM and FLASH Program Memory ........... 31
Code Protection.......................................................... 87, 101
Computed GOTO................................................................ 24
Configuration Bits ............................................................... 87
Configuration Word............................................................. 88
Conversion Considerations............................................... 158