最近使用280049Claunchxl调试CAN通信,发现C2000ware 最新版本例程中波特率设置函数 CAN_setBitRate(CANA_BASE, DEVICE_SYSCLK_FREQ, 500000, 20);
而就版本中波特率设置函数为 CAN_setBitRate(CANA_BASE, DEVICE_SYSCLK_FREQ, 500000, 16);后者例程写进程序后CAN无法正常通信,请问是为什么?
2:这个函数最后一个参数bittime在实际工程中怎么计算?
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.
最近使用280049Claunchxl调试CAN通信,发现C2000ware 最新版本例程中波特率设置函数 CAN_setBitRate(CANA_BASE, DEVICE_SYSCLK_FREQ, 500000, 20);
而就版本中波特率设置函数为 CAN_setBitRate(CANA_BASE, DEVICE_SYSCLK_FREQ, 500000, 16);后者例程写进程序后CAN无法正常通信,请问是为什么?
2:这个函数最后一个参数bittime在实际工程中怎么计算?