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 interfac 8051 with 24c256

Status
Not open for further replies.

jamshaid

Newbie level 4
Joined
Oct 12, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,314
hello
i am new with micro controllers i have this circuit that is using 8051 mc with 24c256 interfaced with it and it operates 7 relays with different timings on and off so fast can any one help me with source code for it
regards
 

Can you post the schematic of the circuit? It sounds like something commercial.
 

i don't have its schematic not a professional i have its pcb design file i can send you that if u send me your email address
and thankyou for your reply
regards
 

Please don't send me PMs. You can post the design here, if it isn't a copyrighted design.

I do not see how anyone can write the code for your device though, without knowing exactly what it should do.

Where did you obtain the PCB file?
 

i made it myself reversed engineered a already designed board
i have its schematic also but it is not a professional type
i hope you can understand it becase i am no a professional
 

Attachments

  • 1.pdf
    157.5 KB · Views: 91

That's a straightforward circuit, at first glance. As I said, it looks something commercial. The circuit is not the issue though; the code is.

I take it that you are not able to write the code yourself; are you trying to fully duplicate the circuit's function? Why?

There is no way that anyone could write code for you to do that, even if they felt motivated to do so. I certainly don't. Without the full programming specifications for the whole device, or full access to the device for testing (reverse engineering), it is pointless to even contemplate.
 

That's a straightforward circuit, at first glance.
I basically agree. The 100 µF capacitors in parallel to the relays look weird and are at risk to cause a power supply breakdown with processor reset or driver transistor damage on switch on. They don't seem to make sense at all.
 
i actually have a hex file for that i had made this circuit and its fully functioning with the desired machine but i need a template of how this types of code are written for micro controller to read from 24c256 so i can practice on it and make my own program alter a bit acording to my own needs i am not asking anyone to write a full code for that

thank you for the advise regarding capacitors they were used in original circuit so i kept it that way i will remove it in my new design version
 

The FM24C256 is a FRAM, a non-volatile type of RAM. It uses an extended I2C interface standard. You can view its datasheet and study the protocol here: http://www.ramtron.com/files/datasheets/FM24C256_ds.pdf

Since the AT89C51 does not have a native I2C interface, the first thing that is needed is software I2C code (aka bit-banging). The existing code will implement that on pins P16 and P17 (P3.6 and P3.7). The pin choice is arbitrary. Once a working I2C interface is coded, then that code is used to send commands and read data from the FRAM according to the standard protocol in the datasheet.

Also, take a look at these, they might help:

http://www.atmel.com/Images/doc0507.pdf
https://www.edaboard.com/threads/43804/
 
The FM24C256 is a FRAM, a non-volatile type of RAM. It uses an extended I2C interface standard.
Yes. With a software I2C implementation on a standard 8051, you'll hardly achieve more than 100 kHz bus speed, so you can effectively ignore the extended stuff.
 
is there any way i can use another micro controller in the circuit that can choose b/w the 10 24c256 using keyboard interface and an LCD?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top