⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i2cslave_abstract.txt

📁 LPCXpresso1768
💻 TXT
字号:
This I2C slave can be tested with the program in "I2C" directory which 
is an I2C master example. The slave address is set the same as the NXP
I2C serial EEPROM, PCF8594_ADDR, used in the "I2C" directory.

In the I2C directory, it does the following things:
(1) Write a block of data, send NACK to stop.
(2) Read the data back from the same location, send NACK to stop.
(3) Verify the results.

In the I2C slave test program, as long as the I2C master sends the 
NACK, it stops the operation and reads the result from the read buffer. 
So, it ends at the first step in the previous sequence.

If you connect two boards with the I2C SCK and SDA, you can use the 
exact same program from I2C directory to test the I2C slave. at the 
end of the I2C slave program, the result of I2C slave read should 
match that from the I2C master write.



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -