English
Language : 

PIC16F87_13 Datasheet, PDF (218/230 Pages) Microchip Technology – 18/20/28-Pin Enhanced Flash MCUs with nanoWatt Technology
PIC16F87/88
RB5/SS/TX/CK Pin .................................................... 66
RB6/AN5/PGC/T1OSO/T1CKI Pin ............................. 67
RB7/AN6/PGD/T1OSI Pin .......................................... 68
Simplified PWM .......................................................... 86
SSP in I2C Mode ........................................................ 94
SSP in SPI Mode ....................................................... 92
System Clock ............................................................. 43
Timer0/WDT Prescaler .............................................. 69
Timer1 ........................................................................ 75
Timer2 ........................................................................ 81
Watchdog Timer (WDT) ........................................... 143
BOR. See Brown-out Reset.
BRGH Bit .......................................................................... 101
Brown-out Reset (BOR) ........................... 131, 134, 135, 137
BOR Status (BOR Bit) ................................................ 26
C
C Compilers
MPLAB C18 ............................................................. 160
Capture/Compare/PWM (CCP) .......................................... 83
Capture Mode ............................................................ 84
CCP Pin Configuration ....................................... 84
Software Interrupt .............................................. 84
Timer1 Mode Selection ...................................... 84
Capture, Compare and Timer1 Associated Registers 85
CCP Prescaler ........................................................... 84
CCP Timer Resources ............................................... 83
CCP1IF ...................................................................... 84
CCPR1 ....................................................................... 84
CCPR1H:CCPR1L ..................................................... 84
Compare Mode .......................................................... 85
CCP Pin Configuration ....................................... 85
Software Interrupt Mode .................................... 85
Special Event Trigger ......................................... 85
Special Event Trigger Output of CCP1 .............. 85
Timer1 Mode Selection ...................................... 85
PWM and Timer2 Associated Registers .................... 87
PWM Mode ................................................................ 86
Example Frequencies/Resolutions .................... 87
Operation Setup ................................................. 87
CCP1CON Register ........................................................... 16
CCP1M0 Bit ....................................................................... 83
CCP1M1 Bit ....................................................................... 83
CCP1M2 Bit ....................................................................... 83
CCP1M3 Bit ....................................................................... 83
CCP1X Bit .......................................................................... 83
CCP1Y Bit .......................................................................... 83
CCPR1H Register ........................................................ 16, 83
CCPR1L Register ......................................................... 16, 83
Clock Sources .................................................................... 41
Selection Using OSCCON Register ........................... 41
Clock Switching .................................................................. 41
Transition and the Watchdog Timer ........................... 42
Transition Sequence .................................................. 43
CMCON Register ............................................................... 17
Code Examples
Call of a Subroutine in Page 1 from Page 0 ............... 27
Changing Between Capture Prescalers ..................... 84
Changing Prescaler Assignment From WDT to Timer0 .
71
Erasing a Flash Program Memory Row ..................... 33
Implementing a Real-Time Clock Using a Timer1 Inter-
rupt Service ........................................................ 79
Indirect Addressing .................................................... 28
Initializing PORTA ...................................................... 53
Reading a 16-Bit Free Running Timer ....................... 76
Reading Data EEPROM ............................................ 31
DS30487D-page 218
Reading Flash Program Memory ............................... 32
Saving STATUS, W and PCLATH Registers in RAM ....
142
Writing a 16-Bit Free Running Timer ......................... 76
Writing to Data EEPROM .......................................... 31
Writing to Flash Program Memory ............................. 35
Code Protection ....................................................... 131, 149
Comparator Module ......................................................... 123
Analog Input Connection Considerations ................ 127
Associated Registers ............................................... 128
Configuration ........................................................... 124
Effects of a Reset .................................................... 127
External Reference Signal ....................................... 125
Internal Reference Signal ........................................ 125
Interrupts ................................................................. 126
Operation ................................................................. 125
Operation During Sleep ........................................... 127
Outputs .................................................................... 125
Reference ................................................................ 125
Response Time ........................................................ 125
Comparator Specifications ............................................... 177
Comparator Voltage Reference ....................................... 129
Associated Registers ............................................... 130
Computed GOTO ............................................................... 27
Configuration Bits ............................................................ 131
Crystal and Ceramic Resonators ....................................... 37
Customer Change Notification Service ............................ 226
Customer Notification Service ......................................... 226
Customer Support ............................................................ 226
CVRCON Register ............................................................. 17
D
Data EEPROM Memory ..................................................... 29
Associated Registers ................................................. 36
EEADR Register ........................................................ 29
EEADRH Register ..................................................... 29
EECON1 Register ...................................................... 29
EECON2 Register ...................................................... 29
EEDATA Register ...................................................... 29
EEDATH Register ...................................................... 29
Operation During Code-Protect ................................. 36
Protection Against Spurious Writes ........................... 36
Reading ..................................................................... 31
Write Complete Flag (EEIF Bit) ................................. 29
Writing ....................................................................... 31
Data Memory
Special Function Registers ........................................ 16
DC and AC Characteristics
Graphs and Tables .................................................. 193
DC Characteristics
Internal RC Accuracy ............................................... 174
PIC16F87/88, PIC16LF87/88 .................................. 175
Power-Down and Supply Current ............................ 166
Supply Voltage ........................................................ 165
Development Support ...................................................... 159
Device Differences ........................................................... 217
Device Overview .................................................................. 7
Direct Addressing .............................................................. 28
 2002-2013 Microchip Technology Inc.