PIC16F870-I/SP Microchip Technology Inc., PIC16F870-I/SP Datasheet - Page 99

no-image

PIC16F870-I/SP

Manufacturer Part Number
PIC16F870-I/SP
Description
28 PIN, 7 KB FLASH, 128 RAM, 22 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F870-I/SP

A/d Inputs
5-Channel, 10-Bit
Cpu Speed
5 MIPS
Eeprom Memory
64 Bytes
Input Output
22
Interface
USART
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin SPDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F870-I/SP
Manufacturer:
MICROCHIP
Quantity:
5 600
Part Number:
PIC16F870-I/SP
Quantity:
2 871
FIGURE 11-9:
11.10.1
External interrupt on the RB0/INT pin is edge triggered,
either rising, if bit INTEDG (OPTION_REG<6>) is set,
or falling, if the INTEDG bit is clear. When a valid edge
appears
(INTCON<1>) is set. This interrupt can be disabled by
clearing enable bit INTE (INTCON<4>). Flag bit INTF
must be cleared in software in the Interrupt Service
Routine before re-enabling this interrupt. The INT inter-
rupt can wake-up the processor from SLEEP, if bit INTE
was set prior to going into SLEEP. The status of global
interrupt enable bit, GIE, decides whether or not the
processor branches to the interrupt vector following
wake-up. See Section 11.13 for details on SLEEP
mode.
 2003 Microchip Technology Inc.
The following table shows which devices have which interrupts.
PIC18F870
PIC18F871
PSPIF
PSPIE
Device
EEIF
EEIE
on
INT INTERRUPT
TMR1IF
TMR1IE
ADIF
ADIE
the
T0IF
Yes
Yes
TMR2IF
TMR2IE
RB0/INT
RCIF
RCIE
INTERRUPT LOGIC
CCP1IF
CCP1IE
INTF
Yes
Yes
TXIF
TXIE
pin,
RBIF
Yes
Yes
flag
bit
PSPIF
Yes
INTF
ADIF
Yes
Yes
T0IF
T0IE
INTF
INTE
RBIF
RBIE
PEIE
GIE
RCIF
Yes
Yes
11.10.2
An overflow (FFh
flag bit T0IF (INTCON<2>). The interrupt can be
enabled/disabled by setting/clearing enable bit T0IE
(INTCON<5>) (Section 5.0).
11.10.3
An input change on PORTB<7:4> sets flag bit RBIF
(INTCON<0>). The interrupt can be enabled/disabled
by setting/clearing enable bit RBIE (INTCON<4>)
(Section 4.2).
TXIF
Yes
Yes
TMR0 INTERRUPT
PORTB INTCON CHANGE
CCP1IF
PIC16F870/871
Yes
Yes
00h) in the TMR0 register will set
TMR2IF
Yes
Yes
Wake-up (If in SLEEP mode)
TMR1IF
Interrupt to CPU
DS30569B-page 97
Yes
Yes
EEIF
Yes
Yes

Related parts for PIC16F870-I/SP