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

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
PICmicro MID-RANGE MCU FAMILY
8.7
DS31008A-page 8-16
Design Tips
Question 1:
Answer 1:
Assuming that the algorithm is correct and that interrupts are enabled during the algorithm,
ensure that are registers that are used by the algorithm and by the interrupt service routine are
saved and restored. If not some registers may be corrupted by the execution of the ISR.
Question 2:
Answer 2:
If interrupts are being used, ensure that the interrupt flag is cleared after servicing that interrupt
(but before executing the RETFIE instruction). If the interrupt flag remains set when the RETFIE
instruction is executed, program execution immediately returns to the interrupt vector, since there
is an outstanding enabled interrupt.
An algorithm does not give the correct results.
My system seems to lock up.
1997 Microchip Technology Inc.

Related parts for PIC16F872-E/SP