FlexRay Module (FLEXRAYV2)
MFR4300 Data Sheet, Rev. 3
Freescale Semiconductor
77
3.3.2.10
Global Interrupt Flag and Enable Register (GIFER)
This register provides the means to control some of the interrupt request lines and provides the
corresponding interrupt flags. The interrupt flags MIF, PRIF, CHIF, RBIF, and TBIF are the outcome of a
binary OR of the related individual interrupt flags and interrupt enables. The generation scheme for these
flags is depicted in
Figure 3-141
. For more details on interrupt generation, see
Section 3.4.19, “Interrupt
Support
. These flags are cleared automatically when all of the corresponding interrupt flags or interrupt
enables in the related interrupt flag and enable registers are cleared by the application. In this register the
application can clear only the interrupt flags WUPIF, FNEBIF, and FNEAIF, by writing ‘1’ to each them.
Writing ‘0’ will not change the flag state. If the application clears a flag and the FlexRay module sets the
flag on the same cycle, then that flag remains set.
0x0016
Write: Normal Mode
15
MIF
14
13
12
11
F
0
10
F
0
9
8
7
6
5
4
3
2
1
0
R
W
PRIF
CHIF
W
RBIF
TBIF
MIE
PRIE
CHIE
W
F
0
F
0
RBIE
TBIE
Reset
0
0
0
0
0
0
0
0
0
0
0
0
Figure 3-9. Global Interrupt Flag and Enable Register (GIFER)
Table 3-16. GIFER Field Descriptions (Sheet 1 of 3)
Field
Description
15
MIF
Module Interrupt Flag
— This flag is set if at least one of the other interrupt flags is in this register is asserted
and the related interrupt enable is asserted, too. The FlexRay module generates the module interrupt request if
MIE is asserted.
0 No interrupt flag is asserted or no interrupt enable is set
1 At least one of the other interrupt flags in this register is asserted and the related interrupt bit is asserted, too
Protocol Interrupt Flag
— This flag is set if at least one of the individual protocol interrupt flags in the
Protocol
Interrupt Flag Register 0 (PIFR0)
and
Protocol Interrupt Flag Register 1 (PIFR1)
is asserted and the related
interrupt enable flag is asserted, too. The FlexRay module generates the combined protocol interrupt request if
the PRIE flag is asserted.
0 All individual protocol interrupt flags are equal to 0 or no interrupt enable bit is set.
1 At least one of the individual protocol interrupt flags and the related interrupt enable is equal to 1.
CHI Interrupt Flag
— This flag is set if at least one of the individual CHI error flags in the
CHI Error Flag
Register (CHIERFR)
is asserted and the chi error interrupt enable GIFER.CHIE is asserted. The FlexRay
module generates the combined CHI error interrupt if the CHIE flag is asserted, too.
0 All CHI error flags are equal to 0 or the chi error interrupt is disabled
1 At least one CHI error flag is asserted and chi error interrupt is enabled
Wakeup Interrupt Flag
— This flag is set when the FlexRay module has received a wakeup symbol on the
FlexRay bus. The application can determine on which channel the wakeup symbol was received by reading the
related wakeup flags WUB and WUA in the
Protocol Status Register 3 (PSR3).
The FlexRay module generates
the wakeup interrupt request if the WUPIE flag is asserted.
0 No wakeup condition or interrupt disabled
1 Wakeup symbol received on FlexRay bus and interrupt enabled
Receive FIFO channel B Not Empty Interrupt Flag
— This flag is set when the receive FIFO for channel B is
not empty. If the application writes 1 to this bit, the FlexRay module updates the FIFO status, increments or wraps
the FIFO read index in the
Receive FIFO B Read Index Register (RFBRIR)
and clears the interrupt flag if the
FIFO B is now empty. If the FIFO is still not empty, the FlexRay module sets this flag again. The FlexRay module
generates the Receive FIFO B Not empty interrupt if the FNEBIE flag is asserted.
0 Receive FIFO B is empty or interrupt is disabled
1 Receive FIFO B is not empty and interrupt enabled
13
PRIF
13
CHIF
12
WUPIF
11
FNEBIF