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.

msp430f149的SPI模块通信中IFG0置位问题

Other Parts Discussed in Thread: CC2500

各位大侠:

F149与CC2500通信过程中:

用表晶做低频晶振,没有高频晶振,内部使用dco到3M。

程序中的while (!(IFG1&URXIFG0)); 一直运行不过去,其中的URXIFG0一直为0;看RXBUF的数据是改变一次的。

不知什么原因,求解答!

  IFG1 &= ~URXIFG0;                       // Clear flag
  SYS_CC2500_SPI_PxOUT &= ~SYS_CC2500_SPI_CSn_PIN;        // /CS enable
  while (SYS_CC2500_SPI_PxIN&SYS_CC2500_SPI_SOMI);// Wait for CCxxxx ready
  U0TXBUF = strobe; 

  while (!(IFG1&URXIFG0));