Main Content

F2838x-M4 MCAN Interrupt Status

Output specific bits of MCAN interrupt register or entire register

  • Library:
  • Embedded Coder Support Package for Texas Instruments C2000 Processors / F2838x / M4

  • MCAN Interrupt Status Block

Description

The MCAN Interrupt Status block outputs specific bits of MCAN_IR register or the entire MCAN_IR register. The register values are cleared after reading the specific bits or entire MCAN_IR register.

Select the MCAN interrupt register output parameter to output the entire MCAN interrupt register.

If MCAN interrupt register output parameter is not selected then the block outputs specific bits from MCAN_IR register based on the selection from Transmit sources, Receive sources and General sources.

Configure Receive, Transmit and other interrupt sources in configuration parameters. For more, Model Configuration Parameters for Texas Instruments F2838x (ARM Cortex-M4).

Ports

Output

expand all

Output port to display entire MCAN_IR register status as uint32 value.

The flags are set when one of the listed conditions is detected (edge-sensitive). The flags remain set until the host 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.

MCAN_IR Register

Bit

012345678910111213141516171819202122232425262728293031

Type

RF0NRF0WRF0FRF0LRF1NRF1WRF1FRF1LHPMTCTCFTFETEFNTEFWTEFFTEFLTSWMRAFTOODRXRESERVEDBEUELOEPEWBOWDIPEAPEDARARESERVEDRESERVED

Dependencies

To enable this port, select the MCAN interrupt register output parameter.

Output port to display the transmit (TX) event first in, first out (FIFO) new entry status. The status port outputs:

  • 0 - TX event FIFO unchanged

  • 1 - TX handler wrote TX event FIFO element

Dependencies

To enable this port, select the TX event FIFO new element parameter.

Output port to display the TX event FIFO watermark reached status. Once the status is cleared and the FIFO level is still above the watermark level, then the bit is not enabled. The bit is enabled only while going from low to high. The status port outputs:

  • 0 - TX event FIFO fill level below watermark

  • 1 - TX event FIFO fill level reached watermark

Dependencies

To enable this port, select the TX event FIFO watermark parameter.

Output port to display the TX event FIFO full status. The status port outputs:

  • 0 - TX event FIFO not full

  • 1 - TX event FIFO full

Dependencies

To enable this port, select the TX event FIFO full parameter.

Output port to display the TX event FIFO element lost status. The status port outputs:

  • 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

Dependencies

To enable this port, select the TX event FIFO element lost parameter.

Output port to display the transmission completed status. The status port outputs:

  • 0 - No transmission completed

  • 1 - Transmission completed

Dependencies

To enable this port, select the Transmission complete parameter.

Output port to display the transmission cancellation finished status. The status port outputs:

  • 0 - No transmission cancellation finished

  • 1 - Transmission cancellation finished

Dependencies

To enable this port, select the Transmission cancellation finished parameter.

Output port to display the transmission FIFO empty status. The status port outputs:

  • 0 - TX FIFO non-empty

  • 1 - TX FIFO empty

Dependencies

To enable this port, select the TX FIFO empty parameter.

Output port to display the high priority message status. The status port outputs:

  • 0 - No high priority message received

  • 1 - High priority message received

Dependencies

To enable this port, select the High priority message parameter.

Output port to display the receive (RX) FIFO 0 new message status. The status port outputs:

  • 0 - No new message written to RX FIFO 0

  • 1 - New message written to RX FIFO 0

Dependencies

To enable this port, select the RX FIFO 0 new message parameter.

Output port to display the receive (RX) FIFO 0 watermark reached status. Once the status is cleared and the FIFO level is still above the watermark level, then the bit is not enabled. The bit is enabled only while going from low to high. The status port outputs:

  • 0 - RX FIFO 0 fill level below watermark

  • 1 - RX FIFO 0 fill level reached watermark

Dependencies

To enable this port, select the RX FIFO 0 watermark parameter.

Output port to display the receive (RX) FIFO 0 full status. The status port outputs:

  • 0 - RX FIFO 0 not full

  • 1 - RX FIFO 0 full

Dependencies

To enable this port, select the RX FIFO 0 full parameter.

Output port to display the RX FIFO 0 message lost status. The status port outputs:

  • 0 - No RX FIFO 0 message lost

  • 1 - RX FIFO 0 message lost, also set after write attempt to RX FIFO 0 of size zero

Dependencies

To enable this port, select the RX FIFO 0 message lost parameter.

Message stored to dedicated RX buffer. The flag is set whenever a received message has been stored into a dedicated RX Buffer.

The status port outputs:

  • 0 - No RX buffer updated

  • 1 - At least one received message stored into an RX buffer

Dependencies

To enable this port, select the Dedicated RX buffer message parameter.

Output port to display the receive (RX) FIFO 1 new message status. The status port outputs:

  • 0 - No new message written to RX FIFO 1

  • 1 - New message written to RX FIFO 1

Dependencies

To enable this port, select the RX FIFO 1 new message parameter.

Output port to display the receive (RX) FIFO 1 watermark reached status. Once the status is cleared and the FIFO level is still above the watermark level, then the bit is not enabled. The bit is enabled only while going from low to high. The status port outputs:

  • 0 - RX FIFO 1 fill level below watermark

  • 1 - RX FIFO 1 fill level reached watermark

Dependencies

To enable this port, select the RX FIFO 1 watermark reached parameter.

Output port to display the receive (RX) FIFO 1 full status. The status port outputs:

  • 0 - RX FIFO 1 not full

  • 1 - RX FIFO 1 full

Dependencies

To enable this port, select the RX FIFO 1 full parameter.

Output port to display the RX FIFO 1 message lost status. The status port outputs:

  • 0 - No RX FIFO 1 message lost

  • 1 - RX FIFO 1 message lost, also set after write attempt to RX FIFO 1 of size zero

Dependencies

To enable this port, select the RX FIFO 1 message lost parameter.

Output port to display the timestamp wraparound status. The status port outputs:

  • 0 - No timestamp counter wrap-around

  • 1 - Timestamp counter wrapped around

Dependencies

To enable this port, select the Timestamp wraparound parameter.

Output port to display the timeout occurred status. The status port outputs:

  • 0 - No timeout

  • 1 - Timeout reached

Dependencies

To enable this port, select the Timeout occurred parameter.

Output port to display the error logging overflow status. The status port outputs:

  • 0 - CAN error logging counter did not overflow

  • 1 - Overflow of CAN error logging counter occurred

Dependencies

To enable this port, select the Error logging overflow parameter.

Output port to display the error warning status. The status port outputs:

  • 0 - Error warning status unchanged

  • 1 - Error warning status changed

Dependencies

To enable this port, select the Warning status parameter.

Output port to display the watchdog event status. The status port outputs:

  • 0 - No message RAM watchdog event occurred

  • 1 - Message RAM watchdog event due to missing ready

Dependencies

To enable this port, select the Watchdog event parameter.

Protocol error in data phase (Data Bit Time is used)

Output port to display the protocol error in data phase status. The status port outputs:

  • 0 - No protocol error in data phase

  • 1 - Protocol error in data phase detected

Dependencies

To enable this port, select the Data protocol error parameter.

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 respectively. 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 set when the Tx Handler could not 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.

Output port to display the message RAM access failure status. The status port outputs:

  • 0 - No message RAM access failure occurred

  • 1 - Message RAM access failure occurred

Dependencies

To enable this port, select the Message RAM access failure parameter.

Bit error uncorrected. Message RAM bit error detected, uncorrected. This bit is set when a double bit error is detected by the ECC aggregator attached to the Message RAM. An uncorrected Message RAM bit error sets CCCR.INIT to 1. This is done to avoid transmission of corrupted data.

Output port to display the bit error uncorrected status. The status port outputs:

  • 0 - No bit error detected when reading from Message RAM

  • 1 - Bit error detected, uncorrected (e.g. parity logic)

Dependencies

To enable this port, select the Bit error uncorrected parameter.

Output port to display the error passive status. The status port outputs:

  • 0 - Error passive status unchanged

  • 1 - Error passive status changed

Dependencies

To enable this port, select the Error passive status parameter.

Output port to display the bus off status. The status port outputs:

  • 0 - Bus off status unchanged

  • 1 - Bus off status changed

Dependencies

To enable this port, select the Bus off status parameter.

Protocol error in arbitration phase (Nominal Bit Time is used)

Output port to display the arbitration protocol error status. The status port outputs:

  • 0 - No protocol error in arbitration phase

  • 1 - Protocol error in arbitration phase detected

Dependencies

To enable this port, select the Arbitration protocol error parameter.

Output port to display the reversed address access status. The status port outputs:

  • 0 - No access to reserved address occurred

  • 1 - Access to reserved address occurred

Dependencies

To enable this port, select the Reversed address access parameter.

Parameter

expand all

Select this parameter to output the entire MCAN interrupt register.

When you select the MCAN interrupt register output parameter, the block configures an output port, MCAN_IR. The port outputs the status of MCAN interrupt register output.

If MCAN interrupt register output parameter is not selected then the block outputs specific bits from MCAN_IR register based on the selection from Transmit sources, Receive sources and General sources.

Transmit sources

When you select the TX event FIFO new element parameter, the block configures an output port, TEFN. The port outputs the status of TX event FIFO new entry.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the TX event FIFO watermark parameter, the block configures an output port, TEFW. The port outputs the status of TX event FIFO watermark reached.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the TX event FIFO full parameter, the block configures an output port, TEFF. The port outputs the status of TX event FIFO full.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the TX event FIFO element lost parameter, the block configures an output port, TEFL. The port outputs the status of TX event FIFO element lost.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Transmission complete parameter, the block configures an output port, TC. The port outputs the status of transmission completed.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Transmission cancellation finished parameter, the block configures an output port, TCF. The port outputs the status of transmission cancellation finished.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the TX FIFO empty parameter, the block configures an output port, TFE. The port outputs the status of transmission FIFO empty.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

Receive sources

When you select the High priority message parameter, the block configures an output port, HPM. The port outputs the status of high priority message.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 0 new message parameter, the block configures an output port, RF0N. The port outputs the status of RX FIFO 0 new message.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 0 watermark parameter, the block configures an output port, RF0W. The port outputs the status of RX FIFO 0 watermark reached.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 0 full parameter, the block configures an output port, RF0FL. The port outputs the status of RX FIFO 0 full.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 0 full parameter, the block configures an output port, RF0ML. The port outputs the status of RX FIFO 0 message lost.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Dedicated RX buffer message parameter, the block configures an output port, DRX. The port outputs the status of dedicated RX buffer message.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 1 new message parameter, the block configures an output port, RF1N. The port outputs the status of dedicated RX FIFO 1 new message.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 1 watermark parameter, the block configures an output port, RF1W. The port outputs the status of RX FIFO 1 watermark reached.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 1 full parameter, the block configures an output port, RF1FL. The port outputs the status of RX FIFO 1 full.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the RX FIFO 1 message lost parameter, the block configures an output port, RF1ML. The port outputs the status of RX FIFO 1 message lost.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

General sources

When you select the Timestamp wraparound parameter, the block configures an output port, TSW. The port outputs the status of timestamp wraparound.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Timeout occurred parameter, the block configures an output port, TOO. The port outputs the status of timeout occurred.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Error logging overflow parameter, the block configures an output port, ELO. The port outputs the status of error logging overflow.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Warning status parameter, the block configures an output port, EW. The port outputs the status of error warning.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Watchdog event parameter, the block configures an output port, WD. The port outputs the status of watchdog event.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Data protocol error parameter, the block configures an output port, PED. The port outputs the status of protocol error in data phase (Data Bit Time is used).

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Message RAM access failure parameter, the block configures an output port, MRAF. The port outputs the status of message RAM access failure.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Bit error uncorrected parameter, the block configures an output port, BEU. The port outputs the status of bit error uncorrected.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Error passive status parameter, the block configures an output port, EP. The port outputs the status of bit error uncorrected.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Bus off status parameter, the block configures an output port, BO. The port outputs the status of bus off status.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Arbitration protocol error parameter, the block configures an output port, PEA. The port outputs the status of arbitration protocol error.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

When you select the Reversed address access parameter, the block configures an output port, ARA. The port outputs the status of access to reserved address.

Dependencies

To enable this parameter, the MCAN interrupt register output parameter must be disabled.

Specify how often the block receives message, in seconds. When you specify this parameter as -1, Simulink determines the best sample time for the block based on the block context within the model.

Version History

Introduced in R2021b