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.

How to save a long variable in e2prom?

Status
Not open for further replies.

eletro

Junior Member level 3
Joined
Sep 12, 2002
Messages
28
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Location
Moon
Activity points
181
ap083701.pdf

How to save a long variable in e2prom (24c02) in c K E I L.
TKS
 

Re: eeprom

The AT24C02 is a serial EEPROM using two 2 wires (clock and data) to connect to 8051.
You have to get use with what is called a bit bang procedure that emulates the I2C bus required by AT24C02.
Read carefully AT24C02 datasheet and these two documents:
**broken link removed**
**broken link removed**
This will teach you how to store/retrieve one byte to AT24C02. After that, sending a long variable it's a piece of cake.

You can read something similar and very nice explained but for keil competitor and I call it Raisonance.
Since C is universal, the code can be ported easily to keil.
http://www.taylorriver.com/latest/i2c_on_raisonance's_c_compilers.html
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top