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.

TM4C123GH6PZ: If I have enable the Can interface on TM4C123GH6PZ,can i config tCANBitClkParms using CANBitTimingSet on the fly?

Part Number: TM4C123GH6PZ

If I have enable the Can interface on TM4C123GH6PZ,can i config tCANBitClkParms using CANBitTimingSet on the fly?

Thanks

  • Yes you can, but doing so will temporarily disable and then re-enable the CAN module. The bit timings can only be changed when the INIT bit of the CANCTL register is set. The CANBitTimingSet() function will set this bit, change the timings and then restore the bit to its previous state.

    Of course this will disrupt the transmission or reception of the current frame. Also, if the timings are not compatible with the timings on the rest of the bus, it will cause errors.