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 哦佛F2232

根据要求P3.0低电平选通器件,SPI发送指令,运行如下程序发现SPI信号出现在P3.0的高电平处(只有第一个时钟位于低电平),时钟和数据的时序关系正确,

           bic.b   #0x01,&P3OUT

loop    bit.b   #UCB0TXIFG,&IFG2        

           jz      loop                  

           mov.b   #0xaa,&UCB0TXBUF

           bis.b   #0x01,&P3OUT