38.7.15 Interrupt

Note: Interrupt flags must be cleared and then read back to confirm the clear before exiting the ISR to avoid double interrupts.

The flags are set when one of the listed conditions is detected (edge-sensitive). A flag is cleared by writing a 1 to the corresponding bit field. Writing a 0 has no effect. A hard reset will clear the register.

Table 38-32. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: IR
Offset: 0x50
Reset: 0x00000000
Property: -

Bit 3130292827262524 
   ARAPEDPEAWDIBOEW 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 2322212019181716 
 EPELO  DRXTOOMRAFTSW 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 15141312111098 
 TEFLTEFFTEFWTEFNTFETCFTCHPM 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 RF1LRF1FRF1WRF1NRF0LRF0FRF0WRF0N 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 29 – ARA Access to Reserved Address

ValueDescription
0No access to reserved address occurred.
1Access to reserved address occurred.

Bit 28 – PED Protocol Error in Data Phase

ValueDescription
0No protocol error in data phase detected.
1Protocol error in data phase detected (i.e., PSR.DLEC bits ( PSR<10:8>) != 0 and PSR.DLEC bits ( PSR<10:8>) != 0 ).

Bit 27 – PEA Protocol Error in Arbitration Phase

ValueDescription
0No protocol error in arbitration phase detected.
1Protocol error in arbitration phase detected (i.e., PSR.LEC bits ( PSR<2:0>) != 0 and PSR.LEC bits ( PSR<2:0>) != 0 ).

Bit 26 – WDI Watchdog Interrupt

ValueDescription
0No Message RAM Watchdog event occurred.
1Message RAM Watchdog event due to missing READY.

Bit 25 – BO 'bus off' Status

ValueDescription
0'bus off' status unchanged.
1'bus off' status changed.

Bit 24 – EW Error Warning Status

ValueDescription
0Error Warning status unchanged.
1Error Warning status changed.

Bit 23 – EP Error Passive

ValueDescription
0Error Passive status unchanged.
1Error Passive status changed.

Bit 22 – ELO Error Logging Overflow

ValueDescription
0CAN Error Logging Counter did not overflow.
1Overflow of CAN Error Logging Counter occurred.

Bit 19 – DRX Message stored in a Dedicated Rx Buffer

The flag is set whenever a received message has been stored into a dedicated Rx Buffer.
ValueDescription
0No Rx Buffer updated.
1At least one received message stored into a Rx Buffer.

Bit 18 – TOO Timeout Occurred

ValueDescription
0No timeout.
1Timeout reached.

Bit 17 – MRAF 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. The New Data flag for a dedicated Rx 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 CAN is switched into Restricted Operation Mode. To leave Restricted Operation Mode, the Host CPU must clear CCCR.ASM bit (CCCR <2>).

ValueDescription
0No Message RAM access failure occurred.
1Message RAM access failure occurred.

Bit 16 – TSW Timestamp Wraparound

ValueDescription
0No timestamp counter wrap-around.
1Timestamp counter wrapped around.

Bit 15 – TEFL Tx Event FIFO Element Lost

ValueDescription
0No Tx Event FIFO element lost.
1Tx Event FIFO element lost, also set after write attempt to Tx Event FIFO of size zero.

Bit 14 – TEFF Tx Event FIFO Full

ValueDescription
0Tx Event FIFO not full.
1Tx Event FIFO full.

Bit 13 – TEFW Tx Event FIFO Watermark Reached

ValueDescription
0Tx Event FIFO fill level below watermark.
1Tx Event FIFO fill level reached watermark.

Bit 12 – TEFN Tx Event FIFO New Entry

ValueDescription
0Tx Event FIFO unchanged.
1Tx Handler wrote Tx Event FIFO element.

Bit 11 – TFE Tx FIFO Empty

ValueDescription
0Tx FIFO not-empty.
1Tx FIFO empty.

Bit 10 – TCF Transmission Cancellation Finished

ValueDescription
0Transmission cancellation not finished.
1Transmission cancellation finished.

Bit 9 – TC Timestamp Completed

ValueDescription
0No transmission completed.
1Transmission completed.

Bit 8 – HPM High Priority Message

ValueDescription
0No high priority message received.
1High priority message received.

Bit 7 – RF1L Rx FIFO 1 Message Lost

ValueDescription
0No Rx FIFO 1 message lost.
1Rx FIFO 1 message lost. also set after write attempt to Rx FIFO 1 of size zero.

Bit 6 – RF1F Rx FIFO 1 Full

ValueDescription
0Rx FIFO 1 not full.
1Rx FIFO 1 full.

Bit 5 – RF1W Rx FIFO 1 Watermark Reached

ValueDescription
0Rx FIFO 1 fill level below watermark.
1Rx FIFO 1 fill level reached watermark.

Bit 4 – RF1N Rx FIFO 1 New Message

ValueDescription
0No new message written to Rx FIFO 1.
1New message written to Rx FIFO 1.

Bit 3 – RF0L Rx FIFO 0 Message Lost

ValueDescription
0No Rx FIFO 0 message lost.
1Rx FIFO 0 message lost. also set after write attempt to Rx FIFO 0 of size zero.

Bit 2 – RF0F Rx FIFO 0 Full

ValueDescription
0Rx FIFO 0 not full.
1Rx FIFO 0 full.

Bit 1 – RF0W Rx FIFO 0 Watermark Reached

ValueDescription
0Rx FIFO 0 fill level below watermark.
1Rx FIFO 0 fill level reached watermark.

Bit 0 – RF0N Rx FIFO 0 New Message

ValueDescription
0No new message written to Rx FIFO 0.
1New message written to Rx FIFO 0.