![NXP Semiconductors SAFE ASSURE Qorivva MPC5601P Reference Manual Download Page 558](http://html.mh-extra.com/html/nxp-semiconductors/safe-assure-qorivva-mpc5601p/safe-assure-qorivva-mpc5601p_reference-manual_1721898558.webp)
Chapter 22 FlexCAN
MPC5602P Microcontroller Reference Manual, Rev. 4
558
Freescale Semiconductor
22.3.4.9
Interrupt Masks 1 Register (IMASK1)
This register allows to enable or disable any number of a range of 32 Message Buffer Interrupts. It contains
one interrupt mask bit per buffer, enabling the CPU to determine which buffer generates an interrupt after
a successful transmission or reception (that is, when the corresponding IFLAG1 bit is set).
22.3.4.10 Interrupt Flags 1 Register (IFLAG1)
This register defines the flags for 32 Message Buffer interrupts and FIFO interrupts. It contains one
interrupt flag bit per buffer. Each successful transmission or reception sets the corresponding IFLAG1 bit.
If the corresponding IMASK1 bit is set, an interrupt will be generated. The Interrupt flag must be cleared
by writing it to 1. Writing 0 has no effect.
When the AEN bit in the MCR is set (Abort enabled), while the IFLAG1 bit is set for a MB configured as
Tx, the writing access done by CPU into the corresponding MB will be blocked.
When the FEN bit in the MCR is set (FIFO enabled), the function of the eight least significant interrupt
flags (BUF7I – BUF0I) is changed to support the FIFO operation. BUF7I, BUF6I and BUF5I indicate
operating conditions of the FIFO, while BUF4I to BUF0I are not used.
01
Error Passive
1X
Bus Off
Address: Base + 0x0028
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R BUF
31M
BUF
30M
BUF
29M
BUF
28M
BUF
27M
BUF
26M
BUF
25M
BUF
24M
BUF
23M
BUF
22M
BUF
21M
BUF
20M
BUF
19M
BUF
18M
BUF
17M
BUF
16M
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R BUF
15M
BUF
14M
BUF
13M
BUF
12M
BUF
11M
BUF
10M
BUF
9M
BUF
8M
BUF
7M
BUF
6M
BUF
5M
BUF
4M
BUF
3M
BUF
2M
BUF
1M
BUF
0M
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 22-12. Interrupt Masks 1 Register (IMASK1)
Table 22-20. IMASK1 field descriptions
Field
Description
0–31
BUF31M –
BUF0M
BUF31M–BUF0M — Buffer MB
i
Mask
Each bit enables or disables the respective FlexCAN Message Buffer (MB0 to MB31) Interrupt.
0 The corresponding buffer Interrupt is disabled.
1 The corresponding buffer Interrupt is enabled.
Note:
Setting or clearing a bit in the IMASK1 Register can assert or negate an interrupt request,
if the corresponding IFLAG1 bit is set.
Table 22-19. Fault confinement state
Value
Meaning