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个数据并接收,这样为何不可? 

__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;

}

这样不行吗??  发送的为0-255, 为何接收到的都不对?