MCAN Interrupt Register
The flags are set when one of the listed conditions is detected (edge-sensitive). The flags remain set until the processor clears them. A flag is cleared by writing a ‘1’ to the corresponding bit position. Writing a ‘0’ has no effect. A hard reset will clear the register. The configuration of IE controls whether an interrupt is generated. The configuration of ILS controls on which interrupt line an interrupt is signalled.
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
ARA | PED | PEA | WDI | BO | EW | ||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | |||
Reset | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
EP | ELO | DRX | TOO | MRAF | TSW | ||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | |||
Reset | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
TEFL | TEFF | TEFW | TEFN | TFE | TCF | TC | HPM | ||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RF1L | RF1F | RF1W | RF1N | RF0L | RF0F | RF0W | RF0N | ||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Receive FIFO 0 New Message
Value | Description |
---|---|
0 | No new message written to Receive FIFO 0. |
1 | New message written to Receive FIFO 0. |
Receive FIFO 0 Watermark Reached
Value | Description |
---|---|
0 | Receive FIFO 0 fill level below watermark. |
1 | Receive FIFO 0 fill level reached watermark. |
Receive FIFO 0 Full
Value | Description |
---|---|
0 | Receive FIFO 0 not full. |
1 | Receive FIFO 0 full. |
Receive FIFO 0 Message Lost
Value | Description |
---|---|
0 | No Receive FIFO 0 message lost. |
1 | Receive FIFO 0 message lost, also set after write attempt to Receive FIFO 0 of size zero. |
Receive FIFO 1 New Message
Value | Description |
---|---|
0 | No new message written to Receive FIFO 1. |
1 | New message written to Receive FIFO 1. |
Receive FIFO 1 Watermark Reached
Value | Description |
---|---|
0 | Receive FIFO 1 fill level below watermark. |
1 | Receive FIFO 1 fill level reached watermark. |
Receive FIFO 1 Full
Value | Description |
---|---|
0 | Receive FIFO 1 not full. |
1 | Receive FIFO 1 full. |
Receive FIFO 1 Message Lost
Value | Description |
---|---|
0 | No Receive FIFO 1 message lost. |
1 | Receive FIFO 1 message lost, also set after write attempt to Receive FIFO 1 of size zero. |
High Priority Message
Value | Description |
---|---|
0 | No high priority message received. |
1 | High priority message received. |
Transmission Completed
Value | Description |
---|---|
0 | No transmission completed. |
1 | Transmission completed. |
Transmission Cancellation Finished
Value | Description |
---|---|
0 | No transmission cancellation finished. |
1 | Transmission cancellation finished. |
Tx FIFO Empty
Value | Description |
---|---|
0 | Tx FIFO non-empty. |
1 | Tx FIFO empty. |
Tx Event FIFO New Entry
Value | Description |
---|---|
0 | Tx Event FIFO unchanged. |
1 | Tx Handler wrote Tx Event FIFO element. |
Tx Event FIFO Watermark Reached
Value | Description |
---|---|
0 | Tx Event FIFO fill level below watermark. |
1 | Tx Event FIFO fill level reached watermark. |
Tx Event FIFO Full
Value | Description |
---|---|
0 | Tx Event FIFO not full. |
1 | Tx Event FIFO full. |
Tx Event FIFO Element Lost
Value | Description |
---|---|
0 | No Tx Event FIFO element lost. |
1 | Tx Event FIFO element lost, also set after write attempt to Tx Event FIFO of size zero. |
Timestamp Wraparound
Value | Description |
---|---|
0 | No timestamp counter wrap-around. |
1 | Timestamp counter wrapped around. |
Message RAM Access Failure
The flag is set, when the Rx Handler
• has not completed acceptance filtering or storage of an accepted message until the arbitration field of the following message has been received. In this case acceptance filtering or message storage is aborted and the Rx Handler starts processing of the following message.
• was not able to write a message to the Message RAM. In this case message storage is aborted.
In both cases the FIFO put index is not updated resp. the New Data flag for a dedicated Receive Buffer is not set, a partly stored message is overwritten when the next message is stored to this location.
The flag is also set when the Tx Handler was not able to read a message from the Message RAM in time. In this case message transmission is aborted. In case of a Tx Handler access failure the MCAN is switched into Restricted Operation mode (see Restricted Operation Mode). To leave Restricted Operation mode, the processor has to reset MCAN_CCCR.ASM.
Value | Description |
---|---|
0 | No Message RAM access failure occurred. |
1 | Message RAM access failure occurred. |
Timeout Occurred
Value | Description |
---|---|
0 | No timeout. |
1 | Timeout reached. |
Message stored to Dedicated Receive Buffer
The flag is set whenever a received message has been stored into a dedicated Receive Buffer.
Value | Description |
---|---|
0 | No Receive Buffer updated. |
1 | At least one received message stored into a Receive Buffer. |
Error Logging Overflow
Value | Description |
---|---|
0 | CAN Error Logging Counter did not overflow. |
1 | Overflow of CAN Error Logging Counter occurred. |
Error Passive
Value | Description |
---|---|
0 | Error_Passive status unchanged. |
1 | Error_Passive status changed. |
Warning Status
Value | Description |
---|---|
0 | Error_Warning status unchanged. |
1 | Error_Warning status changed. |
Bus_Off Status
Value | Description |
---|---|
0 | Bus_Off status unchanged. |
1 | Bus_Off status changed. |
Watchdog Interrupt
Value | Description |
---|---|
0 | No Message RAM Watchdog event occurred. |
1 | Message RAM Watchdog event due to missing READY. |
Protocol Error in Arbitration Phase
Value | Description |
---|---|
0 | No protocol error in arbitration phase |
1 | Protocol error in arbitration phase detected (MCAN_PSR.LEC differs from 0 or 7) |
Protocol Error in Data Phase
Value | Description |
---|---|
0 | No protocol error in data phase |
1 | Protocol error in data phase detected (MCAN_PSR.DLEC differs from 0 or 7) |
Access to Reserved Address
Value | Description |
---|---|
0 | No access to reserved address occurred |
1 | Access to reserved address occurred |