PERIODIC INTERRUPTS, WAVEFORM GENERATION, TIME MEASUREMENT Flashcards
A signal to the processor emitted by hardware or software indicating an event that needs immediate attention.
INTERRUPTS
INTERRUPTS
* ______ programming concept
* E_I_
* I
- Low level
- Extremely important
- Irreplaceable
ORIGIN OF INTERRUPTS
* Normal view of a computer program: sequence of instructions executed _____ , jumps are allowed
serially
ORIGIN OF INTERRUPTS
* This view ______ for the real world.
isn’t good enough
ORIGIN OF INTERRUPTS
* Programs for embedded systems usually service
_______
real-life demands
ORIGIN OF INTERRUPTS
* Real-life demands _____ for anything.
don’t wait
ORIGIN OF INTERRUPTS
* Consider a typical embedded system program: it usually consists of an infinite loop, called the _________
“program loop”
ORIGIN OF INTERRUPTS
* In each iteration, the program checks whether
_________ (i), gives _______ (ii) and
performs ___________ (iii).
i. events have occurred
ii. suitable responses
iii. periodic tasks
ORIGIN OF INTERRUPTS
* This model is sufficient if processor is __________ with respect to real world
extremely fast
Why Interrupts?
* We need a method to ______ the moment they occur, and not after some delayed time.
handle events
Why Interrupts?
* ______ are special events that can “interrupt” the normal flow of a program.
Interrupts
Why Interrupts?
* The ______ stops the normal program, handles the interrupt, and then resumes its normal work.
processor
An electronic alerting signal sent from the processor from an external device, like a disk controller or an external peripheral
Hardware Interrupts
Caused either by an exceptional condition or a special instruction in the instruction set which causes an interrupt when it is executed by the processor.
Software Interrupts
- The state of continuous monitoring
- The microcontroller keeps checking the status of other devices
Polling
For every interrupt, there must be an ________,
or interrupt handler. When an interrupt occurs, the microcontroller runs the __________
interrupt service routine (ISR)