AT32F425
Series Reference Manual
2022.03.30
Page 322
Ver 2.01
19.4
Interrupt management
The CAN controller contains four interrupt vectors that can be used to enable or disable interrups by
setting the CAN_INTEN register.
Figure 19-3
Transmit interrupt generation
TM0TCF = 1
TM1TCF = 1
TM2TCF = 1
TCIEN = 1
TX_INT
Figure 19-4
Receive interrupt 0 generation
RF0MN != 00
RFF0MIEN = 1
RF0FF = 1
RF0FIEN = 1
RF0OF = 1
RF0OIEN = 1
RX0_INT
Figure 19-5
Receive interrupt 1 generation
RF1MN != 00
RFF1MIEN = 1
RF1FF = 1
RF1FIEN = 1
RF1OF = 1
RF1OIEN = 1
RX1_INT
Figure 19-6
Status error interrupt generation
EAF = 1
EAIEN= 1
EPF = 1
EPIEN = 1
BOF= 1
BOIEN= 1
SE_INT
ETR[6
:
4] != 000 and 111
ETRIEN = 1
EOIEN = 1
EDZIF = 1
EDZIEN = 1
QDZIF = 1
QDZIEN = 1
19.5
Design tips
The following information can be used as reference for CAN application development:
Debug control
When the system enters the debug mode, the CAN controller stops or continues to work normally,