BAT32G1x9 user manual | Chapter 22 CAN control
943 / 1149
Rev.1.02
22.12
Interrupt function
The CAN module provides 6 different interrupt sources.
The occurrence of these interrupt sources is stored in the interrupt status register. Four separate
interrupt request signals are generated from six interrupt sources. When generating an interrupt request
signal that corresponds to two or more interrupt sources, you can use the interrupt status register to identify
the interrupt source. After an interrupt source occurs, the software must clear the corresponding interrupt
status bit to 0.
Table22-20. CAN Module interrupt source list
No.
Interrupt status bit
Interrupt enable bit
Interrupt the
application
signal
Description of the interrupt source
name
register
name
register
1
CINTS0
Note
CnINTS
CIE0Not
e
Miss
INTCnTRX
The packet frame is successfully
transmitted from the packet cache
2
CINTS1
Note
CnINTS
CIE1Not
e
Miss
INTCnREC
The message cache receives a
valid message frame
3
CINTS2
CnINTS
CIE2
Miss
INTCnERR
CAN Module Status Error
Interrupt (Supplement 1).
4
CINTS3
CnINTS
CIE3
Miss
CAN module protocol error interrupt
(supplement 2).
5
CINTS4
CnINTS
CIE4
Miss
CAN module Arbitration loss interrupt
6
CINTS5
CnINTS
CIE5
Miss
INTCnWUP
The CAN module wakes up interrupts
from sleep mode (Supplement 3).
Note The IE bit (packet buffer interrupt enabled bit) in the CnMCTRLm register of the corresponding
packet buffer must be set to 1 so that the packet buffer participates in interrupt generation. .
Supplement 1 This interrupt is generated when the Send/Receive Error counter is at the warning level or is in a
passive error or bus shutdown state.
2. This interrupt is generated when a content error, form error, ACK error, bit error, or CRC error
occurs.
3. This interrupt is generated when the CAN module wakes up from CAN sleep mode because a
falling edge is detected at the CAN receive pin (the CAN bus transitions from recessive to
dominant).
Note m=0
to
15