实在不好意思,初次使用5969,问题多多。
这个是spi寄存器的一些描述
indicates that data has moved from UCxTXBUF to the TX shift
register and UCxTXBUF is ready for new data.
It does not indicate RX/TX completion.
上述描述提到不能通过UCTXIFG位是否置位判断spi 发送过程有没有完成。
UCB0TXBUF = byte;
while((UCTXIFG & UCB0IFG) == 0);按文中描述这样操作似乎不行
我想问下,应该如何操作才知道spi发送完成?