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.

c code for writing to and reading from external eeprom

Status
Not open for further replies.

freemanantony

Member level 4
Joined
May 19, 2010
Messages
70
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Chennai, India
Activity points
2,005
hello
can anyone help me with c code for writing to external eeprom with i2c and reading from it. the controller used is 8051
 

Embedded Partner

Full Member level 5
Joined
Nov 29, 2010
Messages
247
Helped
42
Reputation
84
Reaction score
37
Trophy points
1,308
Location
Hubli(INDIA)
Activity points
2,636
hello
can anyone help me with c code for writing to external eeprom with i2c and reading from it. the controller used is 8051

first of all you should know the I2C protocol
specifically which controller you are using in 8051?

---------- Post added at 10:56 ---------- Previous post was at 10:56 ----------

check that controller does it contain I2C module or not

---------- Post added at 10:57 ---------- Previous post was at 10:56 ----------

if not you need to develop I2C driver for the controller
 

g_shyam1682

Full Member level 4
Joined
Jan 11, 2010
Messages
206
Helped
53
Reputation
106
Reaction score
43
Trophy points
1,308
Location
Udaipur-Rajshan-India
Activity points
2,551
Hi friend

You don't give eeprom IC no.
If it is AT24c02 then read datasheet of AT24c02.

this give all required step to read and write with at24c02.
and for this eeprom, does not require any I2C module.

only write code, and eeprom work with any type of Microcontroller.

Hope this is help you.
Shyam
 

freemanantony

Member level 4
Joined
May 19, 2010
Messages
70
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Chennai, India
Activity points
2,005
thank you embedded partner for your time.I am using Philips P89C61X2

---------- Post added at 05:30 ---------- Previous post was at 05:26 ----------

thank you friend . I am using AT24C128 eeprom ic with Philips P89C61X2

---------- Post added at 05:31 ---------- Previous post was at 05:30 ----------

Thank you sumit sharma
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top