Information
45.3.11 Interrupt Flags 1 register (CANx_IFLAG1)
This register defines the flags for the 32 Message Buffer interrupts for MB31 to MB0. 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 1 to it. Writing 0 has no
effect.
The BUF7I to BUF5I flags are also used to represent FIFO interrupts when the Rx FIFO
is enabled. When the bit MCR[RFEN] is set the function of the 8 least significant
interrupt flags BUF[7:0]I changes: BUF7I, BUF6I and BUF5I indicate operating
conditions of the FIFO, and the BUF4TO0I field is reserved.
Before enabling the RFEN, the CPU must service the IFLAG bits asserted in the Rx
FIFO region; see Section "Rx FIFO". Otherwise, these IFLAG bits will mistakenly show
the related MBs now belonging to FIFO as having contents to be serviced. When the
RFEN bit is negated, the FIFO flags must be cleared. The same care must be taken when
an RFFN value is selected extending Rx FIFO filters beyond MB7. For example, when
RFFN is 0x8, the MB0-23 range is occupied by Rx FIFO filters and related IFLAG bits
must be cleared.
Before updating MCR[MAXMB] field, CPU must service the IFLAG1 bits whose MB
value is greater than the MCR[MAXMB] to be updated; otherwise, they will remain set
and be inconsistent with the number of MBs available.
Address: 4002_4000h base + 30h offset = 4002_4030h
Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
R
BUF31TO8I
W
w1c
Reset
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Bit
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
R
BUF31TO8I
BUF7I
BUF6I
BUF5I
BUF4TO0I
W
w1c
w1c w1c w1c
w1c
Reset
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Memory map/register definition
K20 Sub-Family Reference Manual, Rev. 1.1, Dec 2012
1130
Preliminary
Freescale Semiconductor, Inc.
General Business Information
