Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

8051 interfacing with I2C device [EEPROM 24c02]

Status
Not open for further replies.

saidutt

Member level 2
Joined
Dec 4, 2009
Messages
43
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,288
Location
india
Activity points
1,592
hi friends,
i am trying to analyse I2C protocol.i have doubts like,


1) master as transmitter and slave as receiver, flowing the frame format of I2C,
after sending device address master has to wait for the acknowledgement from slave.
if it doesn't get the acknowledgement from slave, the master has to send START bit and the DEVICE address once again. so to test it i have written a program interfacing with EEPROM.

but most of the programs on the net. they have written i a different manner.
like master is writing , reading the data from I2C bus and even acknowledgement is also done. but according to data sheet of I2C acknowledgement has to be done by the receiver(slave) if in case master is transmitting. i am totally confused .please help me out with this issue.

i have taken micro-controller as master and EEPROM as slave. And displaying on to the hyperterminal. it is not displaying the data read from EEPROM.

so please correct where am i wrong.:?::?::?:
 

the slave is supposed to acknowledge at the end of a transmission from the master.

however, what the master does with the acknowledge, or without it, is subject to the programmer. ie, the programmer may or may not retransmit. one particular case would be for example acknowledge polling in determining the ending of an eeprom write cycle.
 

millwood said:
the slave is supposed to acknowledge at the end of a transmission from the master.

however, what the master does with the acknowledge, or without it, is subject to the programmer. ie, the programmer may or may not retransmit. one particular case would be for example acknowledge polling in determining the ending of an eeprom write cycle.

hi friend,
thank for the reply

but according to i2c protocol.

master transmitter should not send ACK to slave receiver during transmitting data.
please help me out .


thank you once again
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top