









































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










































◦ Can be used to connect external interrupting sources i.e. Keypads or switches
◦ CPU controls interaction with the device
◦ Device informs the CPU when it needs service
The location from where the program proceeds with execution is called an interrupt vector. For PIC16F877A, this address is 0004h
◦ there are special bits used to enable or disable interrupts which is IE (Interrupt Enable). ◦ each interrupt is associated with another bit called the flag which indicates that an interrupt request has arrived which is IF ( Interrupt Flag ).
14 Enable? Set to “1” “0” Ignore Internal Interrupt External Interrupt
PIC16F877A Interrupt Instruction Enabler
GIE - Global Interrupt Enable bit - controls all possible interrupt sources simultaneously. ◦ 1 - Enables all unmasked interrupts. ◦ 0 - Disables all interrupts.
PIC16F877A Interrupt Instruction Enabler INTE - RB0/INT External Interrupt Enable bit controls interrupt caused by changing the logic state of the RB0/INT input pin (external interrupt). ◦ 1 - Enables the INT external interrupt. ◦ 0 - Disables the INT external interrupt.
PIC16F877A Interrupt Instruction Enabler RBIE - RB Port Change Interrupt Enable bit. When configured as inputs, PORTB pins may cause an interrupt by changing their logic state (no matter whether it is high-to-low transition or vice versa, the fact that something is changed only matters). This bit determines whether an interrupt is to occur or not. ◦ 1 - Enables the port B change interrupt. ◦ 0 - Disables the port B change interrupt.