Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/07/06 08:49
Read: times


 
#111480 - ur read function is not correct
Responding to: ???'s previous message
Hi narendar,
i think ur read function is not correct. it should be like this

i2c_start();
i2c_send(0xa0);// device address with write
i2c_send(0xXY);// word address
nop();
i2c_start();
i2c_send(0xa1);// device address with read
nop();
rcv_val = i2c_recv();// recving subroutine
i2c_stop();

Also how u checked whether the eeprom is giving ack after writing..

List of 7 messages in thread
TopicAuthorDate
i2c protocol ,problem writing to eeprom            01/01/70 00:00      
   Wait for the write to complete            01/01/70 00:00      
      but iam getting 00 when reading            01/01/70 00:00      
         send micro an e-mail when you address hi            01/01/70 00:00      
         Don't trust the simulator!            01/01/70 00:00      
   ur read function is not correct            01/01/70 00:00      
      snyone know micro's e-mail address            01/01/70 00:00      

Back to Subject List