This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TM4C123GH6PM:CAN 采样点

Guru**** 2340890 points
Other Parts Discussed in Thread: TM4C123GH6PM
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/605118/tm4c123gh6pm-can-sampling-point

器件型号:TM4C123GH6PM

如何更改  TM4C123GH6PM MCU 的 CAN 采样点。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您可以使用 CANBitTimingSet:(请参阅 TIVAWare 外设驱动程序库)
    空 CANBitTimingSet (无符号长整型 ulBase、tCANBitClkParms *pClkParms)
    例如、在本例中、以500kbps 的速率运行、距离为100m、
    CiA DS301标准指定了采样点在14Tq 的位置。
    因此、我使用了:

    //位时序参数
    tCANBitClkParms canbusClkParms =

    13、// SyncPropPhase1Seg、(传播+ PhaseBuffer 1)段、
    //(每个 Prop + Phase_1 13 Tq)
    2、//相位缓冲器2段、2 Tq;13 + 2 + 1Tq (SYNC)= 16 Tq
    2、// SJW =最小值(4、Phase_2)
    10// uint32_t ui32QuantumPrescaler;
    };




    CANBitTimingSet (CAN0_BASE、canbusClkParms);

    此致、
    克劳迪奥