2 weeks, 2 days ago.
mbed CAN bitrate change
my name is Jaesung, and now I use the Nucleo-STM32F767ZI board.
when I use CAN communication, the default bit-rate is fixed at 125kbits
how can I change this?
the mbed library only supports to change the clock frequency of the CAN bus, but I want to change the bit rate of the CAN.
please let me know the method.
2 weeks, 1 day ago.
from my point of view the frequency of the CAN is same as the bit rate and all nodes on the CAN-BUS must have set same frequency. Higher frequency = higher bit rate.
- 1000000hz = 1000kbps bit rate
- 500000hz = 500kbps bit rate
- 100000hz = 100kbps bit rate
/*init*/ can.reset(); can.frequency(500000); //must be called every time after reset or startup. can.attach(&canread); /*rest of code*/
You need to log in to post a question