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.

spi

Other Parts Discussed in Thread: ADS1298R

void writeREG(Uint16 valu)

{ SpiaRegs.SPITXBUF=valu;

 while(SpiaRegs.SPISTS.bit.INT_FLAG!=1)

 {}

 SpiaRegs.SPIRXBUF=SpiaRegs.SPIRXBUF;

}其中whlie循环总是跳不出来是为什么啊?