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的问题。



发1个收1个,正确,设置不同的fifo,也正确。都能做到正确收发。

问题:

如果 打开SCI接收中断,不设fifo,只设置定时器,每进入一次定时器中断,发送256个数据,如果不在定时器中断中接收数据。如何实现在定时器中断之外把这256个数据都收到并赋给数组中??

__interrupt void cpu_timer0_isr(void)
{


for(i=0;i<256;i++)
{ SciaRegs.SCITXBUF.all= sdataA[i];


// rdataA[i]= (SciaRegs.SCIRXBUF.all);
}

PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;

}