NO DEVICE ADRESS ACKNOWDLGE IN TWI

Status
Not open for further replies.

ahmedshakeel

Member level 2
Joined
Feb 7, 2007
Messages
42
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,286
Location
Pakistan
Activity points
1,520
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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…