ahmedshakeel
Member level 2
hi
i am trying to use TWI on atmega8, i want to write single byte 0xaa on eeprom 24c04 .i am simulating it in proteus.i dont get ack response when i send device address to eeprom ,so i send repeated start condition,i have pulled up the sda and scl lines,also address i use is 0xa0, with all address pins of eeprom gnd in hardware too.
plz help me in this regard may be some thing is wrong with my code that i wrote in icc avr. Please c my code as attachment
Shakeel
i am trying to use TWI on atmega8, i want to write single byte 0xaa on eeprom 24c04 .i am simulating it in proteus.i dont get ack response when i send device address to eeprom ,so i send repeated start condition,i have pulled up the sda and scl lines,also address i use is 0xa0, with all address pins of eeprom gnd in hardware too.
plz help me in this regard may be some thing is wrong with my code that i wrote in icc avr. Please c my code as attachment
Shakeel