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.

TMS320F28377D: 使用SCI和RS485通讯时,只有特定波特率可以正常通讯

Part Number: TMS320F28377D

如题,希望能够使用28377和板子上的RS485模块实现2.5MHz的串口通讯,但目前发现,改变LSPCLK为100MHz时,只有波特率为19200才能正常通讯。LSPCLK默认配置时,也有很多波特率无法正常工作。哪怕设置波特率为12500、1250这类理论上无误差的波特率,也无法正常通讯。

代码如下:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*--------------------------------------------------*/
#include "database.h"
/*----------------------------------------------------*/
void MemCopy(Uint16 *SourceAddr, Uint16* SourceEndAddr, Uint16* DestAddr);
void delay (Uint16 t);
void scia_xmit(int a);
void scia_msg(char *msg);
void scia_msg2(Uint16 *msg);
/*----------------------------------------------------*/
Uint16 nBufIndex;
Uint16 Buff_index;
//===========================================================
Uint16 ReceivedChar; //
char *msg; //
//-----------------------------------------------------------
void main(void)
{
InitSysCtrl(); //
InitIpc();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX