SLAAET4 April   2025 MSPM0G3506 , MSPM0G3507 , MSPM0G3518 , MSPM0G3519

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 MCAN Features
  5. 2Sysconfig Configuration for MCAN Module
    1. 2.1 MCAN Clock Frequency
    2. 2.2 MCAN Basic Configuration
      1. 2.2.1 Transmitter Delay Compensation (TDC)
      2. 2.2.2 Bit Timing Parameters
      3. 2.2.3 Message RAM Configuration
        1. 2.2.3.1 Standard and Extended ID Filter Configuration
          1. 2.2.3.1.1 How to Add More Filters
        2. 2.2.3.2 TX MSG RAM
        3. 2.2.3.3 RX MSG RAM
    3. 2.3 Advanced Configuration
    4. 2.4 Retention Configuration
    5. 2.5 Interrupts
    6. 2.6 Pin Configuration and PinMux
  6. 3Demo Project Descriptions
    1. 3.1 TX Buffer Mode
    2. 3.2 TX FIFO Mode
    3. 3.3 RX Buffer Mode
    4. 3.4 RX FIFO Mode
  7. 4Debug and Design Tips to Resolve/Avoid CAN Communication Issues
    1. 4.1 Minimum Number of Nodes Required
    2. 4.2 Why a Transceiver is Needed
    3. 4.3 Bus Off Status
    4. 4.4 Using MCAN in Low Power Mode
    5. 4.5 Debug Checklist
      1. 4.5.1 Programming Issues
      2. 4.5.2 Physical Layer Issues
      3. 4.5.3 Hardware Debug Tips
  8. 5Summary
  9. 6References

Advanced Configuration

Figure 2-6 shows what parameters are included in Advanced Configuration block.

 Advanced Configuration Figure 2-8 Advanced Configuration
  • Enable Additional Core Configuration: enable or disable additional functions like timestamp and process nonmatching frames.
  • Enable Bus Monitoring Mode: in bus monitoring mode (see ISO 11898-1:2015, Bus Monitoring section), the MCAN module is able to receive valid data and remote frames, but cannot start a transmission. The MCAN module sends only recessive bits on the CAN bus. If the MCAN module is required to send a dominant bit (ACK bit, overload flag, active error flag), then the bit is rerouted internally so that the MCAN module monitors this dominant bit. The CAN bus can remain in recessive state. The bus monitoring mode can be used to analyze the traffic on a CAN bus without affecting the bus by the transmission of dominant bits.
  • Enable Normal CAN Operation: defines normal CAN operation mode to restricted operation mode. In restricted operation mode, the CAN node is able to receive data and remote frames and to give acknowledgment to valid frames, but the node does not send data frames, remote frames, active error frames, or overload frames. In case of an error condition or overload condition, the node does not send dominant bits; instead, the node waits for the occurrence of bus idle condition to resynchronize to the CAN communication. The restricted operation mode is automatically entered when the Tx Handler is not able to read data from the Message RAM in time. To leave restricted operation mode, the host CPU has to reset the MCAN_CCCR.ASM bit. This mode can be used in applications that adapt themselves to different CAN bit rates. In this case, the application tests different bit rates and leaves the restricted operation mode after the node has received a valid frame.
  • Time Stamp Prescaler Value: the MCAN module has integrated a 16-bit wrap-around counter for timestamp generation. The timestamp counter prescaler MCAN_TSCC.TCP field can be configured to clock the counter in multiples of CAN bit times (1-16). On start of a frame reception or transmission, the counter value is captured and stored into the timestamp section of an Rx Buffer, Rx FIFO or Tx Event FIFO element.
  • Timestamp Counter Value: configures the timestamp counter value to 0x0, from the internal 16-bit counter or from an external timestamp.
  • Time-out Counter Source Select: the MCAN module has an integrated a 16-bit timeout counter. The timeout counter is used to signal timeout conditions for the Rx FIFO 0, Rx FIFO 1, and Tx Event FIFO Message RAM elements. In continuous mode, the counter is immediately restarted at the value configured by the MCAN_TOCC.TOP field. In case the timeout counter is controlled by one of the FIFOs, an empty FIFO presets the counter to the value configured by the MCAN_TOCC.TOP field. Down-counting is started when the first FIFO element is stored.
  • Start Value Of The Timeout Counter: defines the timeout duration.
  • Enable Time-out Counter: enables the timeout function.
  • Reject Remote Frames Extended: filter or reject all remote frames with 29-bit extended IDs.
  • Reject Remote Frames Standard: filter or reject all remote frames with 11-bit standard IDs.
  • Accept Non-matching Frames Extended: defines how received messages with 29-bit IDs that do not match any element of the filter list are treated.
  • Accept Non-matching Frames Standard: defines how received messages with 11-bit IDs that do not match any element of the filter list are treated.