
FlexCAN Module
MPC5644A Microcontroller Reference Manual, Rev. 6
1436
Freescale Semiconductor
The sensitivity to CAN bus activity can be modified by applying a low-pass filter function to the Rx CAN
input line while in Stop Mode. See the WAK_SRC bit in
Section 32.4.5.1, Module Configuration Register
. This feature can be used to protect FlexCAN from waking up due to short glitches on the CAN
bus lines. Such glitches can result from electromagnetic interference within noisy environments.
32.5.10 Interrupts
The module can generate up to 70 interrupt sources (64 interrupts due to message buffers and 6 interrupts
due to Ored interrupts from message buffers, Bus Off, Error, Tx Warning, Rx Warning and Wake Up). The
number of actual sources depends on the configured number of Message Buffers.
Each one of the message buffers can be an interrupt source, if its corresponding bit in the IMRL or IMRH
register is set. There is no distinction between Tx and Rx interrupts for a particular buffer, under the
assumption that the buffer is initialized for either transmission or reception. Each of the buffers has
assigned a flag bit in the IFRL or IFRH register. The bit is set when the corresponding buffer completes a
successful transmission/reception and is cleared when the CPU writes it to ‘1’ (unless another interrupt is
generated at the same time).
NOTE
It must be guaranteed that the CPU only clears the bit causing the current
interrupt. For this reason, bit manipulation instructions (BSET) must not be
used to clear interrupt flags. These instructions may cause accidental
clearing of interrupt flags which are set after entering the current interrupt
service routine.
If the Rx FIFO is enabled (MCR[FEN] set), the interrupts corresponding to MBs 0 to 7 have a different
behavior. Bit 7 of the IFRL becomes the “FIFO Overflow” flag; bit 6 becomes the FIFO Warning flag, bit
5 becomes the “Frames Available in FIFO flag” and bits 4–0 are unused. See
for more information.
A combined interrupt for all message buffers is also generated by an Or of all the interrupt sources from
message buffers. This interrupt gets generated when any of the message buffers generates an interrupt. In
this case the CPU must read the IFRL or IFRH register to determine which message buffer caused the
interrupt.
The other five interrupt sources (Bus Off, Error, Tx Warning, Rx Warning and Wake Up) generate
interrupts like the message buffer ones, and can be read from the Error and Status Register. The Bus Off,
Table 32-22. Wake-up from Stop Mode
SLF_WAK
WAK_MSK
MCU clocks enabled
Wake-up interrupt
generated
0
0
No
No
0
1
No
No
1
0
No
No
1
1
Yes
Yes
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...