SPRADP4 February   2025 AM620-Q1 , AM623 , AM625 , AM625-Q1 , AM62A3 , AM62A3-Q1 , AM62A7 , AM62A7-Q1 , AM62P , AM62P-Q1 , AM67 , AM68A , AM69A , DRA821U , TDA4AEN-Q1 , TDA4AH-Q1 , TDA4AL-Q1 , TDA4AP-Q1 , TDA4VE-Q1 , TDA4VEN-Q1 , TDA4VH-Q1 , TDA4VL-Q1 , TDA4VM , TDA4VM-Q1 , TDA4VP-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2MCAN Features
  6. 3MCAN Software Configuration
    1. 3.1 Filter Configuration
    2. 3.2 Transmitter Delay Compensation
    3. 3.3 MCAN Bit Timing Parameters
  7. 4Debug Tips to Resolve MCAN Communication Issues
    1. 4.1 Debugging the MCAN Hardware
    2. 4.2 Debugging using MCAN registers
      1. 4.2.1 MCAN Protocol Status Register
      2. 4.2.2 MCAN Error Counter Register
    3. 4.3 Understanding MCAN applications in TI SDKs
      1. 4.3.1 MCU PLUS SDK
      2. 4.3.2 Linux SDK
      3. 4.3.3 MCAL SDK
      4. 4.3.4 PDK
    4. 4.4 Other Common Issues
  8. 5Related FAQs
  9. 6Summary
  10. 7References

Transmitter Delay Compensation

The MCAN module provides a delay compensation mechanism to compensate the transmitter delay. The compensation mechanism enables transmission with higher bit rates during the CAN FD data phase. The transmitter delay compensation is enabled by setting the MCAN_DBTP[23] TDC bit to 1.

Users do not need to measure the transceiver loop-back delay or refer to the transceiver documentation for the same. Users need to program the SSP position, which is the same as the Sampling Point (SP). In case of CAN FD, make sure the Transceiver Delay Compensation value is correctly programmed. The Transmission Delay Compensation Value (TDCV) used as the Secondary Sample Point (SSP) is selected automatically by the CAN controller. The controller measures the delay between when a dominant signal is driven on m_can_tx to when the corresponding edge appears on m_can_rx, sampling every tq. This measured value is updated in the TDCV field of the Protocol Status Register (PSR address=h1044) at each transmission of CAN FD frame, is used as reference, and is used during the data portion of CAN FD transmission to verify good transmission.

The SSP that is selected by the CAN controller can be restricted to a certain window using the Transmitter Delay Compensation Offset (TDCO) and Filter Window Length (TDCF). The offset provides extra amount of time quanta to be added to the delay measurement of the CAN controller. The filter window length defines a minimum valid delay measurement, making sure the SSP is greater than the value defined here. These values can be configured in the Transmitter Delay Compensation Register (TDCR address=h1048).

This SSP position is in the data phase the number of mtq between the start of the transmitted data bit and the secondary sample point. Valid values are 0 to 127 mtq.