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.

[参考译文] CCS/TMS320F28027F:SCI 函数

Guru**** 2337880 points
Other Parts Discussed in Thread: TMS320F28027
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/586336/ccs-tms320f28027f-sci-function

器件型号:TMS320F28027F
主题中讨论的其他器件:TMS320F28027

工具/软件:Code Composer Studio

大家好,我已经为 TMS320F28027 launchpad 编写了 sci SEND & Receive 函数,我想在 这些函数中使用中断 ISR,使其工作方式与使用相同参数发送和接收的函数相同。

我需要进行哪些修改才能具有相同的功能。

void sciSend (uint32长度、uint8 *数据)

while ((length--)>0U)

while (SciaRegs.SCIFFTX.bit.TXFFST!= 0){}
SciaRegs.SCITXBUF=*data;
*DATA++;



空 sciReceive (uint32 length,uint8 * data)

while ((length--)>0U)

while (SciaRegs.SCIFFRX.bit.RXFFST!=1){}
*数据=(uint8)(SciaRegs.SCIRXBUF.ALL);
*DATA++;

 当我调用这些函数时,它们应该使用中断 ISR。