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.

F28377D如何实现4M波特率的485通信?

大神们:

1、现有一外部设备,用sci 485 通信,波特率需要4M

2、dsp配置sci波特率

根据根据官方文档,计算波特率的公式为:

设定值 = LSPCLK /(波特率*8)-1

例如:主频为100M,想跑2.5M,则

100M/(2.5M*8)-1=4

ScibRegs.SCIHBAUD.all =0x0000; //LSPCLK=100M
ScibRegs.SCILBAUD.all =0x0004; //CLK=2.5M

3、那么想设置成4M波特率,100/32不能整除,如何设置?不能四舍五入,否则会通信异常。