Device-level Interrupt
Configurations:
- Initialize PIE and PIE Vector
Table. Enable Global and Real-time Interrupts.
- Configure the interrupt handler
in the PIE Vector Table. Enable interrupt in the interrupt controller.
Module-level Interrupt
Configurations
- Enable interrupt sources using
the register (MCAN_IR), where each bit corresponds to a single interrupt source.
Enable interrupt lines as required using the register (MCAN_ILE).
- Select interrupt lines where
interrupt source is to be routed using the register (MCAN_ILS), where each bit
corresponds to a single interrupt source.
- Interrupt Service Routine (ISR) :
Read Interrupt Register (MCAN_IR) to determine the source of the interrupt (any
of the 30 individual interrupt sources). Clear the interrupt by writing to the
same register. Clear the interrupt line by writing to the register
(MCANSS_EOI).
- Acknowledge the interrupt via
PIEACK.