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.
e2e.ti.com/.../2061.HALCoGen04.05.02-selftest.zipHelloQJ Wang
我使用的 HalCoGen 版本是4.05.02。
但是、当我想使用4800波特率并且将 P 值设置为1431时、我只能传输数据、不能接收数据。
附加文件是我的 HalCoGen 项目文件。
您好 QJ Wang
波特率设置为4800/200/1200时、我不会收到任何内容。
代码如下:
void sciSetBudrate (sciBASE-t * sci、uint32波特)
{
float64 vclk = 110.000 * 1000000.0;
uint32 f=((sci->GCR1 & 2U)=2U)? 16U:1U;
uint32温度;
float64 temp2;
temp =(f*(baud));
TEMP2 =((vclk)/((float64) temp))-1U;
TEMP2 = floor (temp2 + 0.5);
SCI->BRS =(uint32)((uint32) temp2 & 0x00FFFFFFU);
}
我尝试另一种方法
void sciSetBudrate (sciBASE-t * sci、uint32波特)
{
/**-设置波特率*/
scilinREG->BRS = 1431;//预分频1431 = 4800 PBS*/
}
但波特率设置为4800时无法接收相同的数据
谢谢