now i interface LPC2148 with Ds2482 for I2c communication Ds2482 is used for communicate one wire system so i am using DS1990A one wire system. i can read ROM id from I2c i have mention below procedure how to read ROM ID if i read 8 byte data means first i follow some procedure start , write i2c address expect ACK write Read byte command expect ACK stop check the status and start the i2c start , write i2c address expect ACK write Set Read pointer command expect ACK write Set 0xE1 expect ACK
i followed above mention procedure only i can read i byte but whole process i follow 8 times so
How much time to take read ROM ID by using I2C (DS2482)communication?
if(OWReset()) {
OWWriteByte(0x33); for (j = 0; j <8; j++) { ROM[j] = OWReadByte();
}