As a beginner I just start reading from the I2C protocols and stuck in a point. The part in which I am confused is how to know the device address of the EEPROM. Lets say that I have to write/read a data from the chip then how do I know that the what is the device address ?? I already checked on web but I do not get the solution. Any help would be appreciated
As shown in picture there is clearly mention regarding device address. As E2,E1,E0 are the address lines. means if you are using same EEPROM then
you have to configure the this address of each EEPROM.
If you are using single then ground all pins. so address will be
for write adress will be 0xA0
for read adress will be 0xA1
May be you have put in device address 0xA0 somewhere in your code. But you can be sure that the address byte send to the I2C at the begin of a read cycle will be 0xA1. Actually the LSB isn't part of the 7-Bit address, it's the R/W bit.