PIC16F871 Microchip Technology Inc., PIC16F871 Datasheet - Page 99

no-image

PIC16F871

Manufacturer Part Number
PIC16F871
Description
28/40-pin, 8-bit Cmos Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F871-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871-I/P
Manufacturer:
Microchip Technology
Quantity:
1 984
Part Number:
PIC16F871-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16F871T-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
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 PIC16F871