Specifications

Chapter 2 - Microcontroller PIC16F84
Previous page Table of contents Chapter overview Next page
2.6 Interrupts
Interrupts are a mechanism of a microcontroller which enables it to respond to some events at the
moment when they occur, regardless of what microcontroller is doing at the time. This is a very
important part, because it provides connection between a microcontroller and environment which
surrounds it. Generally, each interrupt changes the program flow, interrupts it and after executing an
interrupt subprogram (interrupt routine) it continues from that same point on.
One of the possible sources of an interrupt and how it affects the main program
Control register of an interrupt is called INTCON and is found at 0Bh address. Its role is to allow or
disallowed interrupts, and in case they are not allowed, it registers single interrupt requests through
its own bits.
INTCON Register
http://www.mikroelektronika.co.yu/english/product/books/PICbook/2_07Poglavlje.htm (1 of 7) [4/2/2003 16:17:55]