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.
有以下两个疑问:
1、使用如下程序发送数据
I2C_putMasterData(I2C0_BASE,0x55);
I2C_setMasterConfig(I2C0_BASE, I2C_MASTER_CMD_SINGLE_SEND);
向寄存器中写入数据,但寄存器中数据仍然是0
2、当debug时,或者reset时,没有向寄存器中写入数据,但是寄存器中已经有数据,如上图
对于I2C_initMaster,如果传输数据为100 Kbps,则最后一个参数应设置为false。只有当速度高达400 Kpbs时,才应将其设置为true。确保i2cclk参数与此期望值匹配。
这是为你的应用程序初始化和配置I2C的一般方法