827Chapter 18 AFCAN ControllerUser’s Manual U16580EE3V1UD0018.12 Interrupt FunctionThe CAN module provides 6 different interrupt sources.The occurrence of these interrupt sources is stored in interrupt status registers. Four separate interruptrequest signals are generated from the six interrupt sources. When an interrupt request signal that cor-responds to two or more interrupt sources is generated, the interrupt sources can be identified by usingan interrupt status register. After an interrupt source has occurred, the corresponding interrupt status bitmust be cleared to 0 by software.Table 18-1: List of CAN module interrupt sourcesNote: The IE bit (message buffer interrupt enable bit) in the CnMCTRL register of the correspondingmessage buffer has to be set to 1 for that message buffer to participate in the interrupt genera-tion process.Notes: 1. This interrupt is generated when the transmission/reception error counter is at the warninglevel, or in the error passive or bus-off state.2. This interrupt is generated when a stuff error, form error, ACK error, bit error, or CRC erroroccurs.3. This interrupt is generated when the CAN module is woken up from the CAN sleep modebecause a falling edge is detected at the CAN reception pin (CAN bus transition from reces-sive to dominant).No.Interrupt status bit Interrupt enable bit InterruptrequestsignalInterrupt source descriptionName Register Name Register1 CINTS0 CnINTS CIE0Note CnIE INTCnTRX Message frame successfully transmitted frommessage buffer m2 CINTS1 CnINTS CIE1Note CnIE INTCnREC Valid message frame reception in messagebuffer m3 CINTS2 CnINTS CIE2 CnIE INTCnERR CAN module error state interrupt(Supplement 1)4 CINTS3 CnINTS CIE3 CnIE CAN module protocol error interrupt(Supplement 2)5 CINTS4 CnINTS CIE4 CnIE CAN module arbitration loss interrupt6 CINTS5 CnINTS CIE5 CnIE INTCnWUP CAN module wakeup interrupt from CANsleep mode (Supplement 3)