LPC1114_I2C_SLAVE
所属分类:单片机开发
开发工具:C/C++
文件大小:130KB
下载次数:8
上传日期:2013-12-19 19:59:31
上 传 者:
etigo242
说明: Platform: LPC1114/301 microcontroller from NXP
Description:
sample code example illustrating the basic operations of I2C slave on LPC1114 microcontroller
文件列表:
i2cslave\.cproject (72837, 2011-02-07)
i2cslave\.project (2550, 2011-01-26)
i2cslave\cmsis\core_cm0.c (10869, 2011-01-26)
i2cslave\cmsis\core_cm0.h (41854, 2011-01-26)
i2cslave\cmsis\docs\CMSIS changes.htm (12531, 2011-01-26)
i2cslave\cmsis\docs\CMSIS debug support.htm (9310, 2011-01-26)
i2cslave\cmsis\docs\CMSIS_Core.htm (57004, 2011-01-26)
i2cslave\cmsis\docs\License.doc (39936, 2011-01-26)
i2cslave\cmsis\LPC11xx.h (32550, 2011-01-27)
i2cslave\cmsis\system_LPC11xx.c (13856, 2011-01-26)
i2cslave\config\driver_config.h (429, 2011-01-26)
i2cslave\config\system_LPC11xx.h (6939, 2011-01-26)
i2cslave\config\target_config.h (628, 2011-01-26)
i2cslave\Debug\cmsis\subdir.mk (1423, 2011-02-07)
i2cslave\Debug\driver\subdir.mk (1040, 2011-02-07)
i2cslave\Debug\i2c.bin (3560, 2011-02-07)
i2cslave\Debug\i2c.map (29172, 2011-02-07)
i2cslave\Debug\makefile (1468, 2011-02-07)
i2cslave\Debug\objects.mk (237, 2011-02-07)
i2cslave\Debug\sources.mk (446, 2011-02-07)
i2cslave\Debug\src\subdir.mk (881, 2011-02-07)
i2cslave\Debug\startup\subdir.mk (910, 2011-02-07)
i2cslave\driver\adc.c (7380, 2011-01-26)
i2cslave\driver\adc.h (2461, 2011-01-26)
i2cslave\driver\can.c (12263, 2011-01-26)
i2cslave\driver\can.h (7242, 2011-01-26)
i2cslave\driver\clkconfig.c (3133, 2011-01-26)
i2cslave\driver\clkconfig.h (1830, 2011-01-26)
i2cslave\driver\crp.c (1681, 2011-01-26)
i2cslave\driver\crp.h (3065, 2011-01-26)
i2cslave\driver\debug_printf.c (3981, 2011-01-26)
i2cslave\driver\debug_printf.h (2941, 2011-01-26)
i2cslave\driver\gpio.c (11775, 2011-01-26)
i2cslave\driver\gpio.h (2260, 2011-01-26)
i2cslave\driver\i2c.c (9793, 2011-01-26)
i2cslave\driver\i2c.h (3214, 2011-01-26)
i2cslave\driver\i2cslave.c (6273, 2011-01-26)
i2cslave\driver\i2cslave.h (2017, 2011-01-26)
i2cslave\driver\lpc_swu.c (19328, 2011-01-26)
... ...
i2cslave
=====================
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.
近期下载者:
相关文件:
收藏者: