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.

MSP430G2XX2 调试USI问题

Other Parts Discussed in Thread: MSP430G2412

您好,

我用的是MSP430G2412,现在调试USI的SPI模式, USICNT |= USI16B+USICNT4;   用JTAG在线调试的时候发现USICNT4写不进去,那一位仍然是0。USI16B决定用16位的寄存器,就是USISRH和USISRL都使用。USICNT4就是想传送16位的数据。能解释下为什么吗?

非常感谢。

我补充一下 现在的问题是USICNTx数值写不进去,从而USICENTx一直都是0,中断置1,然后程序就死在中断里面了。USICNT |= USI16B+USICNT4;是写数值那句。