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.

CAN bus Issue.

Part Number: TMS320F28335

We are having some issues in setting the eCAN on the TMS320F28335.

First, the following snippet code is for setting the baud rate but it does not generate 500 kbps. Are we missing something to set the baud rate to 500 kbps?

    // The following block for all 150 MHz SYSCLKOUT
    // (75 MHz CAN clock) - default. Bit rate = 500 kbps See Note at End of File
    //
    // BitTime = CAN Module Clock Frequency / (BRP * Bitrate)
    //
    // BitTime = 75e6/(10 *5e5) = 15TQ
    //
    // BitTime = TSEG1 + TSEG2 + 1
    //
    // 15TQ = 8TQ + 6TQ + 1
    ECanaShadow.CANBTC.bit.BRPREG = 10;
    ECanaShadow.CANBTC.bit.TSEG2REG = 5;
    ECanaShadow.CANBTC.bit.TSEG1REG = 7;

Secondly, we have just tested the transmission so far. If there is not another node in the bus and hence the device is not receiving and ACK, the CAN bus keeps transmitting the can frame forever. Is that the normal behavior? Can we control how many times the re-transmission happen?

I'll appreciate any advise.

Best,

Wilson