Microcontroller › AVR › How to setup communication between I2C/TWI and EEPROM › communication b/w I2C/TWI & EEPROM
I am using ATMEGA32 microcontroller and EEPROM 24C16.
I am getting acknowledgwment in sending start condition & sending address both.
when i studied following istruction i could not understand it means how will my EEPROM recieve or send an acknowledgement to my ATMEGA32.:
u r my last hope.
// Clear TWI interrupt flag, Put start condition on SDA, Enable TWI
while(!(TWCR & (1<<TWINT))); // Wait till start condition is transmitted
while((TWSR & 0xF8)!= 0x08); // Check for the acknowledgement