Hello, I am working on LPC2148 implemented on Embedded Artists board. I am trying to write to the connected EEPROM and then read my data back. the hardware connection is fine and the slave address is 0xA0, I already read most of the online related information and the usermanual, but still I have problem with it. the problem is I can't get ACK from slave. since this is my first time working with I2C I do have some basic questions: 1. when simulating my code with keil(uvision4) do I have to get the ACK during simulation from Slave? in my case, when I simulate my code in debugger it shows the Master transmit Slave address, but then it goes to the status condition which shows no ACK from Slave. 2. does keil simulate the external hardware? 3. when I use Logic Analyzer in Keil debugger, it shows that SDA, SCL are high, do they have to change?
thanks for your help
Hi, I am trying to use the command window and read I2C_IN for ACK. would you please some one help me in this: what I am doing is, trying to simulate I2C, so I am using the function signal i2cmemory(). I add this code to be initial code, and when I start debuger it goes to simulation. in the command window, I type -I2CMEMORY() -then I2C0_OUT=0X0100 for start -the I give the slave address -read I2C0_IN, but here instead of getting 0xffoo, I am getting 0xffff are these steps right.
thanks for your help Neda
I figured out how to simulate I2C by signal function