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通信问题

程序是
void SPI_init(void)
{
  open_xt2();//打开外部晶振
  UCTL1=SWRST;//开启设置
  UTCTL1=CKPH+SSEL1+STC;//选择SMCLK
  UCTL1|=CHAR+SYNC+MM;//8为数据 SPI模式
  UBR01=0x03;//波特率设置
  UBR11=0X00;
  UMCTL1=0X00;
  UCTL1&=~SWRST;//关闭设置
  ME2|=USPIE1;//使能SPI
}
初始化后,是不是时钟引脚会马上就有时钟输出。
我的程序他就是时钟引脚一直被拉低,我找不到原因。