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.

SCI如何显示变量?



本人使用F28035,通过学习controlSuit例程,能够使用串口示波器显示静态数值,但是不知道如何显示动态变量?希望能够给予帮助,谢谢!!

程序如下:

char St[] = "\n\r清华大学\n\r\0";
int i=0;
Uint16 ReceivedChar;

void main(void)
{

InitSysCtrl();

InitSciaGpio();// scia_fifo_init(); // Initialize the SCI FIFO
                    // scia_loopback_init(); // Initalize SCI for digital loop back

DINT;
IER = 0x0000;
IFR = 0x0000;

InitPieVectTable();

EnableInterrupts();

for(;;)
{
for(i=0;St[i]!='\0';i++)
{
scia_xmit(St[i]);
while(SciaRegs.SCIFFRX.bit.RXFFST !=1) { } // wait for RRDY/RXFFST =1 for 1 data available in FIFO


ReceivedChar = SciaRegs.SCIRXBUF.all;
}

}

}