Problem on SEND_I2C_COMMAND(0x08);

2 posts / 0 new
Last post
zhangxw211
Offline
Last seen:4 years 11 months ago
加入:2015-04-14 08:15
Problem on SEND_I2C_COMMAND(0x08);

Hi,
I got two problem in I2C periphral.
1. In I2C communication, SEND_I2C_COMMAND(0x08) is used in i2c_wait_until_eeprom_ready(). I used logical anlyzer to see the data, it send the slave address (0x0d) out instead of 0x08. why is this happen? And SEND_I2C_COMMAND is also used to send data, but it always send the slave address instead of the data I want to transmitt..
2.当我连接奴隶设备da14580 (in master mode), it always failed in WAIT_UNTIL_I2C_FIFO_IS_EMPTY(), and sometimes it failed in SEND_I2C_COMMAND(0x08). Is anything wrong with the slave device? Or it may be SW problem?

Can any one help me?
Thank you very much!

Keywords:
Device:
summer20100514
Offline
Last seen:4 years 2 months ago
Guru
加入:2014-12-30 05:01
As far as I am concerned, the

As far as I am concerned, the hardware i2c interface is slightly different from one software i2c interface, which means you should better not compare the code line by line to the actual output. The reason is some dirty work is automatically done by hardware. What you should care about is the actual output on i2c bus instead.