Main Content

MCAN Transmit Peripheral Configuration

Map MCAN Transmit peripherals in the model to peripheral registers in the MCU

Since R2024b

Description

View and edit the map of peripherals in the Infineon® AURIX™ model to the hardware peripherals.

Using the Hardware Mapping tool, you can:

  • View and edit configuration parameters for MCAN Transmit peripheral block.

  • Check for any conflicts between the peripherals.

MCAN Transmit peripheral configuration

Open the MCAN Transmit Peripheral Configuration

In the Hardware tab of the Simulink® mode, click Hardware Mapping.

Hardware Mapping

Parameters

expand all

Global parameters > Module # Node #

Select the pin number for CAN message transmission.

Select the pin number for CAN message reception.

Select the strength of the output pins for CAN communication.

Select the input mode for the CAN communication.

Select the speed of the CAN transmit and receive pins.

Select the voltage level of the CAN transmit and receive pins.

Select the frame format for CAN communication.

Select this parameter to enable calculate the bit timing automatically.

Select to enable bit rate switching between nominal bit rate and data bit rate.

Dependencies

To enable this parameter, set the Frame format parameter to CAN FD.

Global parameters > Module # Node # > Arbitration phase parameters

Specify the baud rate for the selected CAN node in the arbitration phase.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter.

Specify the sample point to synchronize the CAN nodes in arbitration phase.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter in the MCAN block in the Simulink model.

Specify the bit time adjustment limit for the arbitration phase. Specify a positive integer indicating the number of bit time quanta segments.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter in the MCAN block in the Simulink model.

Specify the number of bit time quanta to compensate the edge phase errors before the sampling point. Typically, an adjustment of this value is made with a corresponding inverse adjustment to Time segment 2 parameter, such that their sum remains constant.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter and disable the Auto calculate bit timing parameter.

Specify the number of bit time quanta to compensate the edge phase errors after the sampling point. Typically, an adjustment of this value is made with a corresponding inverse adjustment to Time segment 1 parameter, such that their sum remains constant.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter and disable the Auto calculate bit timing parameter.

Global parameters > Module # Node # > Data phase parameters

Specify the baud rate of data.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter in the MCAN block in the Simulink model.

Specify the sample point for resynchronization of CAN nodes in data phase.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter in the MCAN block in the Simulink model.

Specify the maximum limit of bit time adjustment in the case of resynchronization in data phase. The specified value must be a positive integer indicating a number of bit time quanta segments.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter in the MCAN block in the Simulink model.

Specify the number of bit time quanta before the sampling point. Typically, an adjustment of this value is made with a corresponding inverse adjustment to Time segment 2 parameter, such that their sum remains constant.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter and disable the Auto calculate bit timing parameter.

Specify the number of bit time quanta after the sampling point. Typically, an adjustment of this value is made with a corresponding inverse adjustment to Time segment 1 parameter, such that their sum remains constant.

Dependencies

To enable this parameter, select the Enable bit rate switching parameter and disable the Auto calculate bit timing parameter.

Global parameters > Module # Node # > Bus parameters

Specify baud rate for the CAN bus.

Dependencies

To enable this parameter, disable the Enable bit rate switching parameter.

Specify the sample point to synchronize the CAN nodes.

Dependencies

To enable this parameter, disable the Enable bit rate switching parameter.

Specify the maximum limit of bit time adjustment in the case of resynchronization. The specified value must be a positive integer indicating a number of bit time quanta segments.

Dependencies

To enable this parameter, disable the Enable bit rate switching parameter.

Specify the number of bit time quanta before the sampling point. Typically, an adjustment of this value is made with a corresponding inverse adjustment to Time segment 2 parameter, such that their sum remains constant.

Dependencies

To enable this parameter, disable the Enable bit rate switching parameter and disable the Auto calculate bit timing parameter.

Specify the number of bit time quanta after the sampling point. Typically, an adjustment of this value is made with a corresponding inverse adjustment to Time segment 1 parameter, such that their sum remains constant.

Dependencies

To enable this parameter, disable the Enable bit rate switching parameter and disable the Auto calculate bit timing parameter..

Global parameters > Module # Node # > Transmit

Specify the transmission mode for CAN communication.

Specify Individual data field size for CAN data transmission.

Specify the number of dedicated buffers for CAN data transmission.

Dependencies

To enable this parameter, set the Transmit mode parameter to Dedicated-Buffers and FIFO, Dedicated-Buffers, or Dedicated-Buffers and Queue.

Specify the number of queue elements for CAN data transmission.

Dependencies

To enable this parameter, set the Transmit mode parameter to Queue or Dedicated-Buffers and Queue.

Specify the number of FIFO registers for CAN data transmission.

Dependencies

To enable this parameter, set the Transmit mode parameter to FIFO or Dedicated-Buffers and FIFO.

Global parameters > Module # Node # > Receive

Specify the mode to receive CAN data.

Configure the parameters and interrupts corresponding to FIFO registers or buffers based on the value of Receive mode parameter. For example, set this parameter to Dedicated-Buffers and FIFO 0 and FIFO 1 to configure interrupts and parameters related to FIFO 0, FIFO 1 registers, and buffers.

Specify the individual data field size for CAN data reception.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO 0, Dedicated-Buffers and FIFO 1, or Dedicated-Buffers.

Global parameters > Module # Node # > FIFO #

Specify the individual data field size of FIFO # register for CAN data reception.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Specify the mode of operation of FIFO # registers for CAN data reception.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Specify the number of FIFO elements for CAN data reception.

Dependencies

To enable this parameter, select the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Specify the watermark level for CAN data reception

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Global parameters > Module # Node # > Filter

Enable this parameter so that the block rejects all remote frames with 11-bit standard IDs.

Enable this parameter so that the block rejects all remote frames with 29-bit extended IDs.

Specify whether to accept in FIFO register or reject the non-matching 11-bit standard ID frames.

Specify whether to accept in FIFO register or reject the non-matching 29-bit extended ID frames.

Specify a mask for the range filter.

Global parameters > Module # Node # > Standard filter

Select the standard filter element number.

The block uses all the specified filter elements for acceptance filtering of standard frames. Acceptance filtering stops when the block finds the matching filter element among the specified elements or when it reaches the end of the filter list.

Note

You can select any filter element and configure its parameters. You can view the configured filter elements in the read-only parameter Standard filters configured.

Configure MCAN standard filter elements

Select one of the following configuration options for the standard filter element specified in the Standard filter number parameter.

  • Disable — Disable the standard filter element.

  • FIFO 0 — Store in Rx FIFO 0 register if filter matches.

  • FIFO 1 — Store in Rx FIFO 1 register if filter matches.

  • Reject — Reject ID if filter matches

  • High priority interrupt and reject — Set priority and reject ID if filter matches.

  • High priority interrupt-and-FIFO0 — Set priority and store in FIFO 0 if filter matches.

  • High priority interrupt-and-FIFO1 — Set priority and store in FIFO 1 if filter matches.

  • Buffers — Store in Rx Buffer.

Select the filter type for the standard filter element specified in the Standard filter number parameter.

Dependencies

To enable this parameter, set the Configuration parameter to FIFO 0, FIFO 1, Reject, High priority interrupt and reject, High priority interrupt-and-FIFO0, or High priority interrupt-and-FIFO1.

Specify the start ID for the range filter of selected filter element in Standard filter number parameter.

Dependencies

To enable this parameter, set the Filter type parameter to Range filter

Specify the end ID for the range filter of selected filter element in Standard filter number parameter.

Dependencies

To enable this parameter, set the Filter type parameter to Range filter

Specify ID 1 for the selected filter element in Standard filter number parameter.

Dependencies

To enable this parameter, set the Filter type parameter to Dual ID or Classic mask.

Specify ID 2 for the selected filter element in Standard filter number parameter.

Dependencies

To enable this parameter, set the Filter type parameter to Dual ID.

Specify mask for the selected filter element in Standard filter number parameter.

The 0 bit masks out the corresponding bit position of the configured Message ID filter (Id1) and the value of the received Message ID at that bit position is not relevant for acceptance filtering. Only those bits of the received Message ID where the corresponding mask bits are 1 are relevant for acceptance filtering.

For example, consider ID1 as 0x201 (0x 0010 0000 0001 in binary) and Mask as 0x7E0 (0x 0111 1110 0000 in binary). The valid message IDs for this configuration are 0x x010 000x xxxx, where x can be 0 or 1 representing don't care condition.

Dependencies

To enable this parameter, set the Filter type parameter to Classic mask.

Specify buffer number for the selected filter element in Standard filter number parameter.

Dependencies

To enable this parameter, set the Configuration parameter to Buffers.

Global parameters > Module # Node # > Extended filter

Select the extended filter element number.

The block uses all the specified filter elements for acceptance filtering of standard frames. Acceptance filtering stops when the block finds the matching filter element among the specified elements or when it reaches the end of the filter list.

Note

You can select any filter element and configure its parameters. You can view the configured filter elements in the read-only parameter Standard filters configured.

Configure MCAN extended filter elements

Select one of the following configuration options for the extended filter element selected using Extended filter number parameter.

  • Disable — Disable the extended filter element

  • FIFO 0 — Store in Rx FIFO 0 register if filter matches

  • FIFO 1 — Store in Rx FIFO 1 register if filter matches

  • Reject — Reject ID if filter matches

  • High priority interrupt and reject — Set priority and reject ID if filter matches

  • High priority interrupt-and-FIFO0 — Set priority and store in FIFO 0 if filter matches

  • High priority interrupt-and-FIFO1 — Set priority and store in FIFO 1 if filter matches

  • Buffers — Store in Rx Buffer

Select the filter type for the extended filter element selected using Extended filter number parameter.

Note

If you set this parameter to Range filter with global mask, the block performs logical AND of message ID of received extended ID frame and Global mask for range filter parameter value configured in Filter tab. Set the Global mask for range filter parameter to 0x1fffffff to ignore the mask.

Dependencies

To enable this parameter, set the Configuration parameter to FIFO 0, FIFO 1, Reject, High priority interrupt and reject, High priority interrupt-and-FIFO0, or High priority interrupt-and-FIFO1.

Specify the start ID for the range filter of selected filter element in Extended filter number parameter.

Dependencies

To enable this parameter, set the Filter type parameter to Range filter

Specify the end id for the range filter of selected filter element in Extended filter number parameter.

Dependencies

To enable this parameter, set the Filter type parameter to Range filter.

Specify ID 1 for the selected filter element in Extended filter number parameter.

Dependencies

To enable this parameter, select the Filter type parameter to Dual ID or Classic mask.

Specify id2 for the selected filter element in Extended filter number parameter.

Dependencies

To enable this parameter, select the Filter type parameter to Dual ID.

Specify mask for the selected filter element in Extended filter number parameter.

The 0 bit masks out the corresponding bit position of the configured Message ID filter (Id1) and the value of the received Message ID at that bit position is not relevant for acceptance filtering. Only those bits of the received Message ID where the corresponding mask bits are 1 are relevant for acceptance filtering.

For example, consider ID1 as 0x201 (0x 0010 0000 0001 in binary) and Mask as 0x7E0 (0x 0111 1110 0000 in binary). The valid message IDs for this configuration are 0x x010 000x xxxx, where x can be 0 or 1 representing don't care condition.

Dependencies

To enable this parameter, set the Filter type parameter to Classic mask.

Specify buffer number for the selected filter element in Extended filter number parameter.

Dependencies

To enable this parameter, set the Configuration parameter to Buffers.

Global parameters > Module # Node # > Transmit events

Select this parameter to enable the interrupt for transmit complete event.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Select this parameter to enable the interrupt for transmit complete FIFO empty.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Global parameters > Module # Node # > Receive events

Select this parameter to enable interrupt for new message in FIFO - 0.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Select this parameter to enable interrupt for watermark level of FIFO - #.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Select this parameter to enable interrupt for FIFO - # full.

Enable the interrupt to view Interrupt service request line parameter and specify Service request-#.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Select this parameter to enable interrupt for message lost in FIFO - #.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or FIFO #.

Select this parameter to enable interrupt for message stored in dedicated buffer.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Dependencies

To enable this parameter, set the Receive mode parameter to Dedicated-Buffers and FIFO 0 and FIFO 1, Dedicated-Buffers and FIFO #, or Dedicated-Buffers.

Select this parameter to enable interrupt for high priority message reception.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Global parameters > Module # Node # > Error events

Select this parameter to enable passive error interrupt.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Select this parameter to enable waiting status interrupt.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Select this parameter to enable bus off error interrupt.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Select to enable watchdog event interrupt.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Select this parameter to enable protocol error arbitration interrupt.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Select this parameter to enable protocol error data interrupt.

Enable the interrupt to view the Interrupt service request line parameter and specify Service request-#.

Basic > Node #

Specify the module and node for CAN data transmission.

Version History

Introduced in R2024b