I2CSLAVE
所属分类:单片机开发
开发工具:C/C++
文件大小:14KB
下载次数:89
上传日期:2010-12-02 19:32:22
上 传 者:
龙天
说明: LPC1114 I2C SLAVE例程,LPC11XX的I2CSLAVE接收的程序,很少见
(LPC1114 I2C SLAVE routine, LPC11XX the I2CSLAVE receiving procedures are rare)
文件列表:
I2CSLAVE\FLASH.INI (998, 2009-10-07)
I2CSLAVE\I2CSLAVE.C (5366, 2009-10-10)
I2CSLAVE\I2CSLAVE.H (1910, 2009-10-08)
I2CSLAVE\I2CSLAVE.OPT (3958, 2009-10-10)
I2CSLAVE\I2CSLAVE.UV2 (5520, 2009-10-07)
I2CSLAVE\I2CSLAVE.UVO (66812, 2009-12-10)
I2CSLAVE\I2CSLAVE.UVP (33946, 2009-12-10)
I2CSLAVE\I2CSLVTST.C (1446, 2009-10-08)
I2CSLAVE\RAM.INI (897, 2009-10-07)
I2CSLAVE\LST (0, 2010-09-28)
I2CSLAVE\OBJ (0, 2010-09-28)
I2CSLAVE (0, 2010-09-28)
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.
近期下载者:
相关文件:
收藏者: