请教朋友们关于i2c_loopback_m3例程下载到M3核后如何验证程序跑的正常与否呢?谢谢了!
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.
请教朋友们关于i2c_loopback_m3例程下载到M3核后如何验证程序跑的正常与否呢?谢谢了!
hongyue,
例程中用到下面的语句:
// Place the data to be sent in the data register
I2CSlaveDataPut(I2C0_SLAVE_BASE, ulDataTx[ulindex]);
// Read the data from the master.
ulDataRx[ulindex] = I2CMasterDataGet(I2C0_MASTER_BASE);
所以看ulDataRx 和ulDataTx就行了。
当然也可以看寄存器
I2C Master Data (I2CMDR)
I2C Slave Data (I2CSDR)
Eric