question on i2c: reading slave acknowledge and sent data

Status
Not open for further replies.

daisyzari

Junior Member level 3
Joined
Feb 8, 2011
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,907
I have a question on making a master I2C. I don't know if it has been asked before, but how can i get the acknowledgement of the slave that happens every ninth pulse of the scl? Should I just assume that it did acknowledge and assert that ack_in on my vhdl code is 0 (which means the slave indeed acknowledged the command) in every action? Also would the slave automatically pull the SDA to low when it acknowledges? If so would it also be okay if I just leave the SDA state to 'Z' (which is '1' due to it being pulled up by a resistor) and allow the slave to pull it low or high depending on the data it would transmit?


Thank you very much. Your help would be very much appreciated
 

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