jaya krishna
Member level 1
- Joined
- May 10, 2012
- Messages
- 41
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- India,coimbatore
- Activity points
- 1,770
how to interface eeprom with pic controller 16/18f...by using i2c....i read the pdf file for i2c ... i dont know how to initial the i2c....how master send the correct address to slave...how to find that address..
i understand i2c what means ,start condition=sda is high to low with scl is high and
next is control byte it shows 1010 A0 A1 A2....it for read/write operation? then we wait for ACK from slave then we start the condition until the data is completely transfered and finally stop the i2c.
seriously i dont know how to assign the address of i2c(master) to slave....;like external eeprom..
ex:
i2c_start();
i2c_write(0xd0); // not understand//
i2c_write(address);
i2c_write(data);
i2c_stop();
i2c_start();
status=i2c_write(0xd0);
pls any one help me...............
thank u
jai
i understand i2c what means ,start condition=sda is high to low with scl is high and
next is control byte it shows 1010 A0 A1 A2....it for read/write operation? then we wait for ACK from slave then we start the condition until the data is completely transfered and finally stop the i2c.
seriously i dont know how to assign the address of i2c(master) to slave....;like external eeprom..
ex:
i2c_start();
i2c_write(0xd0); // not understand//
i2c_write(address);
i2c_write(data);
i2c_stop();
i2c_start();
status=i2c_write(0xd0);
pls any one help me...............
thank u
jai