PIC16F872-E/SP Microchip Technology, PIC16F872-E/SP Datasheet - Page 367

no-image

PIC16F872-E/SP

Manufacturer Part Number
PIC16F872-E/SP
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,DIP,28PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F872-E/SP

Rohs Compliant
YES
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-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
19.8
1997 Microchip Technology Inc.
Initialization
Example 19-1
Example 19-1:
MOVLW
MOVWF
BSF
MOVLW
MOVWF
MOVLW
MOVWF
BCF
CALL
shows the steps to configure the voltage reference module.
Section 19. Voltage Reference
0x02
CMCON
STATUS,RP0
0x07
TRISA
0xA6
VRCON
STATUS,RP0
DELAY10
Voltage Reference Configuration
; 4 Inputs Muxed to 2 comparators
;
; go to Bank1
; RA3:RA0 are outputs
; outputs
; enable VREF
; low range set VR3:VR0 = 6
; go to Bank0
; 10
s delay
DS31019A-page 19-7
19

Related parts for PIC16F872-E/SP