16F870 Microchip, 16F870 Datasheet - Page 98
![no-image](/images/no-image-200.jpg)
16F870
Manufacturer Part Number
16F870
Description
Search -----> PIC16F870
Manufacturer
Microchip
Datasheet
1.16F870.pdf
(172 pages)
- Current page: 98 of 172
- Download datasheet (4Mb)
PIC16F870/871
FIGURE 11-8:
11.10 Interrupts
The PIC16F870/871 family has up to 14 sources of
interrupt. The Interrupt Control register (INTCON)
records individual interrupt requests in flag bits. It also
has individual and global interrupt enable bits.
A global interrupt enable bit, GIE (INTCON<7>),
enables (if set) all unmasked interrupts, or disables (if
cleared) all interrupts. When bit GIE is enabled, and an
interrupt’s flag bit and mask bit are set, the interrupt will
vector immediately. Individual interrupts can be dis-
abled through their corresponding enable bits in vari-
ous registers. Individual interrupt bits are set,
regardless of the status of the GIE bit. The GIE bit is
cleared on RESET.
The “return from interrupt” instruction, RETFIE, exits
the interrupt routine as well as sets the GIE bit, which
re-enables interrupts.
The RB0/INT pin interrupt, the RB port change
interrupt, and the TMR0 overflow interrupt flags are
contained in the INTCON register.
DS30569B-page 96
Note:
INTERNAL RESET
PWRT TIME-OUT
INTERNAL POR
OST TIME-OUT
Individual interrupt flag bits are set,
regardless
corresponding mask bit, or the GIE bit.
MCLR
V
DD
SLOW RISE TIME (MCLR TIED TO V
of
the
status
0V
T
PWRT
of
their
1V
5V
The peripheral interrupt flags are contained in the spe-
cial function registers, PIR1 and PIR2. The correspond-
ing interrupt enable bits are contained in special
function registers, PIE1 and PIE2, and the peripheral
interrupt enable bit is contained in special function
register, INTCON.
When an interrupt is responded to, the GIE bit is
cleared to disable any further interrupt, the return
address is pushed onto the stack and the PC is loaded
with 0004h. Once in the Interrupt Service Routine, the
source(s) of the interrupt can be determined by polling
the interrupt flag bits. The interrupt flag bit(s) must be
cleared in software before re-enabling interrupts to
avoid recursive interrupts.
For external interrupt events, such as the INT pin or
PORTB change interrupt, the interrupt latency will be
three or four instruction cycles. The exact latency
depends when the interrupt event occurs. The latency
is the same for one or two-cycle instructions. Individual
interrupt flag bits are set, regardless of the status of
their corresponding mask bit, PEIE bit, or GIE bit.
DD
)
T
OST
2003 Microchip Technology Inc.
Related parts for 16F870
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![STM-16](/images/no-image3.png)
Part Number:
Description:
16 fold Spectroscopy Amplifier with Discriminators and Multiplicity Trigger
Manufacturer:
ETC2 [List of Unclassifed Manufacturers]
Datasheet:
![m66311fp](/images/manufacturer_photos/0/5/561/renesas_electronics_corporation__tmb.jpg)
Part Number:
Description:
16-bit Led Driver With Shift Register And Latch
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
![m66014fp](/images/manufacturer_photos/0/5/561/renesas_electronics_corporation__tmb.jpg)
Part Number:
Description:
16-bit Serial Bus Controller
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
![pt8300](/images/manufacturer_photos/0/5/540/princeton_technology_corp__tmb.jpg)
Part Number:
Description:
16-bit I/o Expander Ic
Manufacturer:
Princeton Technology Corp.
Datasheet:
![as29lv016jbrgr-70/xt](/images/no-image3.png)
Part Number:
Description:
16 Megabit 2m X 8-bit / 1m X 16-bit Cmos 3.0 Volt-only Boot Sector Flash Memory
Manufacturer:
Austin Semiconductor, Inc.
Datasheet:
![as29lv016brg-90/xt](/images/no-image3.png)
Part Number:
Description:
16 Megabit 2m X 8-bit / 1m X 16-bit Cmos 3.0 Volt-only Boot Sector Flash Memory
Manufacturer:
Austin Semiconductor, Inc.
Datasheet:
![hm51w16165tt-7](/images/no-image3.png)
Part Number:
Description:
16 M Edo Dram 1-mword ? 16-bit
Manufacturer:
Elpida Memory, Inc.
Datasheet:
![hm5118165tt-7](/images/no-image3.png)
Part Number:
Description:
16 M Edo Dram 1-mword ? 16-bit
Manufacturer:
Elpida Memory, Inc.
Datasheet:
![hm5216165](/images/no-image3.png)
Part Number:
Description:
16 M Lvttl Interface Sdram 512-kword ? 16-bit ? 2-bank
Manufacturer:
Elpida Memory, Inc.
Datasheet:
![hm5216165tt-10h](/images/no-image3.png)
Part Number:
Description:
16 M Lvttl Interface Sdram 512-kword ? 16-bit ? 2-bank 100 Mhz/83 Mhz
Manufacturer:
ETC-unknow
Datasheet:
![MA300015](/photos/8/96/89623/ma300015_tmb.jpg)
Part Number:
Description:
MODULE PLUG-IN DSPIC30F 80QFP
Manufacturer:
Microchip Technology
Datasheet:
![MA180021](/photos/8/96/89639/ma180021_tmb.jpg)
Part Number:
Description:
MODULE PLUG-IN 18F87J50 FS USB
Manufacturer:
Microchip Technology
Datasheet:
![AC164131](/photos/8/96/89652/ac164131__tmb.jpg)
Part Number:
Description:
BOARD DAUGHTER USB PICTAIL PLUS
Manufacturer:
Microchip Technology
Datasheet: