PIC16F872T-E/SS Microchip Technology, PIC16F872T-E/SS Datasheet - Page 161
![IC MCU CMOS 20MHZ 2K FLSH 28SSOP](/photos/6/81/68119/150-28-ssop_sml.jpg)
PIC16F872T-E/SS
Manufacturer Part Number
PIC16F872T-E/SS
Description
IC MCU CMOS 20MHZ 2K FLSH 28SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F688T-ISL.pdf
(688 pages)
3.PIC16C770-ISO.pdf
(8 pages)
4.PIC16F872-ISO.pdf
(168 pages)
5.PIC16F872-ISO.pdf
(5 pages)
6.PIC16F872-ISO.pdf
(6 pages)
Specifications of PIC16F872T-E/SS
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
INT Interrupt (RB0/INT). See Interrupt Sources
INTCON Register .......................................................... 9
Inter-Integrated Circuit (I
Internal Sampling Switch (Rss) Impedance ....................... 82
Interrupt Sources ........................................................ 87
Interrupts
Interrupts, Context Saving During ...................................... 98
Interrupts, Enable Bits
Interrupts, Flag Bits
K
K
L
Load Conditions ............................................................... 126
Loading of PC .................................................................... 20
Low Voltage ICSP Programming ..................................... 102
Low Voltage In-Circuit Serial Programming ....................... 87
© 2006 Microchip Technology Inc.
EE
L
MOVF ...................................................................... 108
MOVLW ................................................................... 108
MOVWF ................................................................... 108
NOP ......................................................................... 108
RETFIE .................................................................... 108
RETLW .................................................................... 108
RETURN .................................................................. 109
RLF .......................................................................... 109
RRF ......................................................................... 109
SLEEP ..................................................................... 109
SUBLW .................................................................... 109
SUBWF .................................................................... 109
SWAPF .................................................................... 110
XORLW ................................................................... 110
XORWF ................................................................... 110
Summary Table ....................................................... 104
GIE Bit ....................................................................... 14
INTE Bit ..................................................................... 14
INTF Bit ..................................................................... 14
PEIE Bit ..................................................................... 14
RBIE Bit ..................................................................... 14
RBIF Bit .............................................................. 14
TMR0IE Bit ................................................................ 14
TMR0IF Bit ................................................................ 14
Interrupt-on-Change (RB7:RB4 ) ............................... 31
RB0/INT Pin, External ............................................... 98
TMR0 Overflow .......................................................... 98
Bus Collision Interrupt ............................................... 18
Synchronous Serial Port Interrupt ............................. 16
Global Interrupt Enable (GIE Bit) ............................... 97
Interrupt-on-Change (RB7:RB4) Enable
Interrupt-on-Change (RB7:RB4) Flag
TMR0 Overflow Flag (TMR0IF Bit) ............................ 98
OQ
Evaluation and Programming Tools ................... 114
(RBIE Bit) .................................................. 98
(RBIF Bit) ............................................ 31
2
C) .............................................. 51
,
,
,
,
14
31
97
98
M
Master Clear (MCLR)
Master Synchronous Serial Port. See MSSP
MCLR/V
Memory Organization .......................................................... 7
MPLAB C17 and MPLAB C18 C Compilers .................... 111
MPLAB ICD In-Circuit Debugger ..................................... 113
MPLAB ICE High Performance Universal In-Circuit
MPLAB Integrated Development
MPLINK Object Linker/MPLIB Object Librarian ............... 112
MSSP ................................................................................ 51
Multi-Master Communication ............................................. 73
O
OPCODE Field Descriptions ........................................... 103
OPTION_REG Register ..............................................10
OSC1/CLKI Pin ................................................................... 5
OSC2/CLKO Pin .................................................................. 5
Oscillator Configuration
Oscillator Selection ............................................................ 87
Oscillator, WDT ................................................................. 99
Oscillators
MCLR Reset, Normal Operation .........................91
MCLR Reset, SLEEP ..........................................91
Data Memory ............................................................... 7
Program Memory ........................................................ 7
Emulator with MPLAB IDE ...................................... 112
Environment Software ............................................. 111
I
Overflow Detect Bit (SSPOV) .................................... 59
Special Function Registers
SPI Master Mode ...................................................... 55
SPI Mode .................................................................. 55
SPI Slave Mode ........................................................ 56
SSPADD ................................................................... 59
SSPADD Register ..................................................... 58
SSPBUF .................................................................... 55
SSPBUF Register ..................................................... 58
SSPSR ................................................................55
SSPSTAT Register ................................................... 58
INTEDG Bit ............................................................... 13
PS2:PS0 Bits ............................................................. 13
PSA Bit ...................................................................... 13
RBPU Bit ................................................................... 13
T0CS Bit .................................................................... 13
T0SE Bit .................................................................... 13
HS .......................................................................89
LP ........................................................................89
RC ................................................................ 89
XT ........................................................................89
Capacitor Selection ................................................... 90
Crystal and Ceramic Resonators .............................. 89
RC ............................................................................. 90
2
C Operation ............................................................ 58
PP
SSPCON ........................................................... 51
SSPCON2 ......................................................... 51
SSPSTAT .......................................................... 51
Pin ..................................................................... 5
PIC16F872
DS30221C-page 159
,
90
,
,
,
,
,
,
,
,
93
93
59
13
92
92
92
92