Download presentation - Pumpkin, Inc.

Transcript
Part I (cont’d)
www.pumpkininc.com
• Interrupts preempt normal code execution.
ƒ Interrupt code runs in the foreground.
ƒ Normal (e.g. main()) code runs in the background.
• Interrupts can be enabled and disabled.
ƒ Globally.
ƒ Individually on a per-peripheral basis.
ƒ Non-Maskable Interrupt (NMI).
• The occurrence of each interrupt is unpredictable.*
ƒ When an interrupt occurs.
ƒ Where an interrupt occurs.
• Interrupts are associated with a variety of on-chip and offchip peripherals.
ƒ Timers, SCI, A/D & D/A.
ƒ NMI, change-on-pin.
Slide 6