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.

用8bit spi 模拟16bit spi 遇到的问题

Other Parts Discussed in Thread: MSP430G2553

你好,我使用的是launchpad msp430g2553 ,想用8bit的16bit的tlv5618 通过串口通信

中断里面是这么写的

{

set_cs;           //DA要求cs高无效

count = (count++)%256;  //正弦表累加

IE2 &= ~UCA0TXIE;     //关中断,以免高位数据发完后中断

UCA0TXBUF =  sindata_h[count]|0x40;   发送高位数据16位中最高4位是命令  sindata数据都小于0x0fff

clr_cs;     //cs低有效

while(!UCA0TXIFG);          //高8位发送完毕

UCA0TXBUF =  sindata_l[count];        //发送低8位

IE2 |= UCA0TXIE;           //开中断   发送完成后进入循环

}

DA 没有输出  检查各个端口波形看起来都正常。

软件模拟16bit  spi  可以输出波形。