主题中讨论的其他器件:MAX3221、 C2000WARE、 controlSUITE
工具/软件:Code Composer Studio
特别先生,
我想通过带 UART 的 RS232[MAX3221]将数据从 PC 传输到 PCB。在以下代码中,我应该做些什么更改?。以前,我要将数据从 PCB 传输到 PC .code
SendChar = 0;
while (1)
{
SCIC_xmit (0xAB);
while (ScicRegs.SCIFFRX.bit.RXFFST!= 1);
ReceivedChar = ScicRegs.SCIRXBUF.ALL;
if (ReceivedChar!= SendChar) error ();
//移动到下一个字符并重复测试
SendChar++;
//将字符限制为8位
SendChar &= 0x00FF;
LoopCount++;
delay();
}
