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 baudrate configuration

Other Parts Discussed in Thread: HALCOGEN

hi, 

i dont know how to configure that CAN for different baudrate.

i need how to calculate CAN bit time calculations for TMS470MF066HDK.

thanks 

arun

  • If you use HALCoGen, you just enter the desired baudrate (in KB/s) in the first box.

    The details are given in section 10.14 of SPNU495.

  • once i make my code at 500kbps means, at run time how can i change my CAN baudrate  at 125kbps or 1mbps.

    is it possible to change like this.

    thanks

    arun

  • It is possible to change the baud rate by reconfiguring the CAN module. Are you sure you want to do that? CAN busses are not tolerant of having devices use different baud rates on the same bus. All devices on the bus would have to stop talking, change to the new baud rate and then start again.

    The simplest way to do this is to create a dummy HALCoGen project and in the dummy project configure the CAN module to the new baud rate. Then copy the canInit() function from the dummy project can.c file. Then paste it into your own file in the original project and change the function name.