Part Number: tda3
Tool/software: TI-RTOS
hi all:
We are using Mcan in TDA3. Please show us how to set the mcan's bit rate.
Thanks !
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.
Hi,
I'm not familiar with TI-RTOS, but I want to flag that MCAN hardware is described in TDA3 TRM, particularly see the MCAN_DBTP register for CAN timing.
Regards,
Stan
Hi Yordan:
Thanks for your answer . We are using "VISION_SDK_02_12_00_00". And another question, is there any demo for mcan such as "utils_dcan" in the SDK. We have problem in how to initialize the clock and the interrupt of mcan.
Thanks and Regards
hi Vivek :
Thanks very much for your help.
I have changed the bit rate configure as follows.
bitTimes.nomRatePrescalar = 0x9U;
bitTimes.nomTimeSeg1 = 0xAU;
bitTimes.nomTimeSeg2 = 0x3U;
bitTimes.nomSynchJumpWidth = 0x3U;
bitTimes.dataRatePrescalar = 0x13U;
bitTimes.dataTimeSeg1 = 0x3U;
bitTimes.dataTimeSeg2 = 0x2U;
bitTimes.dataSynchJumpWidth = 0x0U;
Both nominal and data bit-rate are set to 500Kbps.
The internal loopback can work , but when transmit to other equipment. I have another question about the rules to how to set parameters "RatePrescalar", "TimeSeg1", "TimeSeg2". Is there any equation?
Thanks and Regards