English
Language : 

PIC16F872_06 Datasheet, PDF (159/168 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS Flash Microcontroller with 10-Bit A/D
INDEX
A
A/D ..................................................................................... 79
Acquisition Requirements .......................................... 82
ADCON0 Register ..................................................... 79
ADCON1 Register ..................................................... 79
ADIF Bit ..................................................................... 81
ADRESH Register ..................................................... 79
ADRESL Register ...................................................... 79
Associated Registers and Bits ................................... 85
Configuring Analog Port Pins .................................... 83
Configuring the Interrupt ............................................ 81
Configuring the Module ............................................. 81
Conversion Clock ...................................................... 83
Conversions ............................................................... 84
Effects of a RESET .................................................... 85
GO/DONE Bit ............................................................ 81
Internal Sampling Switch (Rss) Impedance ............... 82
Operation During SLEEP ........................................... 85
Result Registers ........................................................ 84
Source Impedance .................................................... 82
TAD ............................................................................ 83
Absolute Maximum Ratings ............................................. 117
ACK pulse .......................................................................... 59
ACKDT Bit
Acknowledge Data Bit (ACKDT) ................................ 54
ACKEN Bit
Acknowledge Sequence Enable Bit (ACKEN) ........... 54
Acknowledge Pulse (ACK) ................................................. 59
ACKSTAT Bit
Acknowledge Status Bit (ACKSTAT) ......................... 54
ACKSTAT Status Flag ....................................................... 67
ADCON0 Register ............................................................... 9
ADCON1 Register ............................................................. 10
ADRESH Register ............................................................... 9
ADRESL Register .............................................................. 10
Analog-to-Digital Converter. See A/D
Application Notes
AN552 (Implementing Wake-up on Key Stroke) ........ 31
AN556 (Implementing a Table Read) ........................ 20
AN578 (Use of the SSP Module in the I2C
Multi-Master Environment) ........................ 58
Assembler
MPASM Assembler ................................................. 111
B
Banking, Data Memory ........................................................ 7
BCLIF Bit ........................................................................... 18
BF Bit
Buffer Full Status Bit (BF) .......................................... 52
, BF Status Flag ............................................................ 67 69
Block Diagrams
A/D Converter ............................................................ 81
Analog Input Model .................................................... 82
Baud Rate Generator ................................................ 64
Capture Mode ............................................................ 46
Compare Mode .......................................................... 47
I2C Slave Mode ......................................................... 58
Interrupt Logic ............................................................ 97
MSSP (SPI Mode) ..................................................... 55
On-Chip Reset Circuit ................................................ 91
Peripheral Output Override (RC 2:0, 7:5) .................. 33
Peripheral Output Override (RC 4:3) ......................... 33
PIC16F872 .................................................................. 4
© 2006 Microchip Technology Inc.
PIC16F872
PWM Mode ............................................................... 48
RA3:RA0 and RA5 Pins ............................................ 29
RA4/T0CKI Pin .......................................................... 29
RB3:RB0 Pins ........................................................... 31
RB7:RB4 Pins ........................................................... 31
RC Oscillator Mode ................................................... 90
SSP (I2C Master Mode) ............................................ 63
Timer0/WDT Prescaler .............................................. 35
Timer1 ....................................................................... 40
Timer2 ....................................................................... 43
Watchdog Timer ........................................................ 99
BOR. See Brown-out Reset
Brown-out Reset (BOR) ................................ 87, 91, 92, 93
Bus Arbitration ................................................................... 73
Bus Collision
Section ...................................................................... 73
Bus Collision During a Repeated START Condition ......... 76
Bus Collision During a START Condition .......................... 74
Bus Collision During a STOP Condition ............................ 77
Bus Collision Interrupt Flag (BCLIF) .................................. 18
C
Capture Mode
CCP Pin Configuration .............................................. 46
Software Interrupt ...................................................... 46
Timer1 Mode Selection ............................................. 46
Capture/Compare/PWM (CCP) ......................................... 45
Associated Registers ................................................ 47
PWM and Timer2 .............................................. 49
Capture Mode ........................................................... 46
CCP1IF ............................................................. 46
Prescaler ........................................................... 46
CCP Timer Resources .............................................. 45
Compare Mode ......................................................... 47
Software Interrupt Mode .................................... 47
Special Event Trigger ........................................ 47
PWM Mode ............................................................... 48
Duty Cycle ......................................................... 48
Example Frequencies/
Resolutions (Table) ........................... 49
PWM Period ...................................................... 48
Special Event Trigger and A/D Conversions ............. 47
CCP. See Capture/Compare/PWM
CCP1CON Register ............................................................ 9
CCP1M3:CCP1M0 bits ...................................................... 45
CCP1X bit .......................................................................... 45
CCP1Y bit .......................................................................... 45
, CCPR1H Register .........................................................9 45
, CCPR1L Register ..........................................................9 45
CKE Bit .............................................................................. 52
CKP Bit .............................................................................. 53
Clock Polarity Select Bit (CKP) ......................................... 53
Code Examples
Changing Between Capture Prescalers .................... 46
EEPROM Data Read ................................................ 25
EEPROM Data Write ................................................. 25
FLASH Program Read .............................................. 26
FLASH Program Write .............................................. 27
Indirect Addressing ................................................... 21
Initializing PORTA ..................................................... 29
Saving STATUS, W and PCLATH Registers ............ 98
Code Protected Operation
Data EEPROM and FLASH Program Memory .......... 28
DS30221C-page 157