在执行了I2CMasterDATAPUT(I2C0_BASE,'Q')之后 看MDR寄存器, 显示都是0 ,为什么就写不进去呢,, 我看文档例程就这样写的啊
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.
在执行了I2CMasterDATAPUT(I2C0_BASE,'Q')之后 看MDR寄存器, 显示都是0 ,为什么就写不进去呢,, 我看文档例程就这样写的啊
I2C操作看起来代码有点问题,得先设置器件地址。
参考C:\ti\TivaWare_C_Series-2.1.0.12573\examples\peripherals\i2c中的例程来试一下。
M4和M3相比就是SCL脚的配置换了一个新的库函数。
中断状态的问题更像是逻辑上的问题,可以把代码贴上来一起看看