Interrupt Example
Interrupt Example
Cristian Sisterna
Argentina
Exception / Interrupt
Special condition that requires a processor's immediate attention
Sources of an Software
exception User-generated SI Interrupt
nFIQ
ARM
nIRQ Cortex-A9
Polling
EVENT
Asynchronous Synchronous (i.e. you know when to expect it within a small window)
Urgent Not urgent (i.e. a slow polling interval has not bad effects)
Hardware Polling
Interrupt
Level triggered
◦ Parameter: SENSITIVITY
◦ High, attribute: LEVEL_HIGH
◦ Low, attribute: LEVEL_LOW
CAN Handler
Interrupt . CORTEX A9
. DMA Handler
Enabled Devices .
in the PS
I2C Handler IRQ Master Exception
Interrupt Handler
nnnn Handler Handler Logic
SCU Timer
SCU Timer Handler
PL PS
SoC School - C. Sisterna ICTP - IAEA 20
Software Generated Interrupts (SGI)
Each CPU can interrupt itself, the other CPU, or both CPUs using a software
generated interrupt (SGI)
PPI Includes
o The global timer, private watchdog timer, private timer, and FIQ/IRQ from the PL
o IRQ IDs 16-26 reserved, global timer 27, nFIQ 28, private timer 29, watchdog timer 30, nIRQ 31
SoC School - C. Sisterna ICTP - IAEA 22
Shared Peripheral Interrupts (SPI)
A group of approximately 60 interrupts from various peripherals can be routed to
one or both of the CPUs or the PL. The interrupt controller manages the
prioritization and reception of these interrupts for the CPUs.
CAN Handler
Interrupt . CORTEX A9
. DMA Handler
Enabled Devices .
in the PS 1
I2C Handler IRQ Master Exception
Interrupt Handler
nnnn Handler Handler Logic
SCU Timer SCU Timer Handler 2 6
5 4 my_timer_int_hanlder 3
PL PS
SoC School - C. Sisterna ICTP - IAEA 43
IRS - Interrupt Handler - 1