Discussion in "New Ideas regarding projects" started by    rawat742    Aug 13, 2017.
Sun Aug 13 2017, 06:01 PM
Dear Sir ,
Please help me for store a parameter for or data in memory that cannot erase after power off i.e it will be retentive type i want to store my data and want to use that data farther in program to compare my other data i am search memory use and syntax on many site but i am not able to do so i am fresher in embedded but i want to work on project . sir i am working on 8051 and keil software in embedded C language.
Sun Aug 13 2017, 11:11 PM
The basic 8051 has no eeprom and you can't reprogram the system memory
the way many modern devices can.
It can't do what you want.
Some fancy 8051 types have eeprom , but are less common and more expensive.

The simplest way to add eeprom is by adding a separate memory chip
such as the Micropchip 24LC64.
You then read/write the 24LC64 using 3 pins of the 8051 to "bit bang" the
I2C protocol.

 rawat742 like this.
Mon Aug 14 2017, 06:52 AM
Dear sir, First of all i want to thanks to you for giving a response. sir i want to know only way how to use a memory because i am read some 8051 have internal memory but i am not able to use that memory i am want to simulate only Proteus and keil if we have to need change controller then i am ready to change them . if you have any code and simulating design regarding to external memory please send me . if possible please give comment also in code. by which i am able to understand easily.
Mon Aug 14 2017, 10:19 PM
The original 8051 is a primitive device.
Over the years , manufacturers made controllers based on the 8051
with added features such as eeprom.
Proteus and Kiel do not support all these 8051 variants.

You will have to look at those Proteus lists and see if any contain eeprom.
Then you will need to check that Kiel can access that memory.
It might be easy, but probably is not.
A safer way is to add an eeprom to a simple 8051.
This project does that.
(U13 driven by pins P3.6 and P3.7)

Use the memory reading/writing code code from the project as an example.
There are similar projects on this site and on other sites to copy.
 rawat742 like this.
Thu Aug 17 2017, 08:24 PM
Dear Sir ,
Please help me for storing a local variable data in a memory I am able to store a array but I want to use a local variable to store a value like a parameter as well as tell me if possible hex to ascii when I am trying it to print then it will give me a garbage value I am attach my sample code where I have faced a problem to store a value .
Thu Aug 17 2017, 10:54 PM
Try this.
Fri Aug 18 2017, 11:19 AM
Dear Sir,
as per your attachment I will try the code which you are send to me and many of my problem are short out for which I want to give thanks to you but after using this I have face a problem it will not convert the proper ascii it will also print a hex value . and I have also a problem to increased my value by pressing a button .
Fri Aug 18 2017, 11:24 AM
Dear Sir ,
I am not able to increased value by pressing a button but it will be print a value when I am using a for loop Please help me and Please tell me if power has been off the value are store in a memory are retentive or not if not then tell me how I am able to make it retentive memory . Thankyou Sir for giving a useful feedback and valuable time to me .
Fri Aug 18 2017, 02:58 PM
Dear Sir, I have a another program in which I am able to convert hex to ascii code but in this attachment I am not able to do so
code that is I am use for converting is
y= s /10;
please help for converting hex to ascii in eeprom
I am also use your subroutine
void print4bits(unsigned char x)
if(x < 10) //0-9

x+=0x30; //print as ascill 0x30 to 0x39 1-9

x+=0x46; //print as ascill 0x41 to 0x46 A-F



but there is no result from all of these please help sir
Sat Aug 19 2017, 02:47 AM
x+=0x46; //print as ascill 0x41 to 0x46 A-F

should be..
		x+=55;  //print as ascii    0x41 to 0x46 A-F
 rawat742 like this.

Get Social


Powered by e107 Forum System


Mon Jan 20 2020, 05:54 AM
Tue Jan 14 2020, 07:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me
Tue Dec 17 2019, 01:44 PM
hello..i am programming industrial timer using 8051 with 24lc64 eeprom. i have query in storing the 3 diff value in eeprom with enter button. can anyone share c code ?
Tue Dec 17 2019, 10:30 AM
Hello. Can anyone share the code in Bascon and scheme in Proteus?
Thu Nov 21 2019, 12:30 PM
how to interface 8051 microcontroller with NRF24L01+ module
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details



Sun Jan 19 2020, 02:13 AM
Sat Jan 11 2020, 10:42 AM
Tue Jan 07 2020, 06:53 PM
Tue Jan 07 2020, 12:42 PM
Sun Dec 29 2019, 05:54 AM
Fri Dec 27 2019, 06:14 PM
Sat Dec 14 2019, 12:31 PM
Thu Dec 12 2019, 12:04 PM


Guests: 48, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38116
Newest member: Nippy56
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Jan 17 2020, 10:24 PM
We will need the circuit diagram.A Proteus simulat...
Billz Avatar
Posted By Billz
Sat Jan 11 2020, 05:43 PM
hi everyone please attached files are my c code fo...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Jan 07 2020, 08:18 PM
Not a stupid question.Setting up "Eclipse" can be...
elt Avatar
Posted By elt
Tue Jan 07 2020, 07:06 PM
So i have just began learning programming micros a...
Billz Avatar
Posted By Billz
Mon Jan 06 2020, 09:22 PM
I think it would be better if you guys try to come...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Jan 06 2020, 12:22 AM
Can you post a circuit diagram and any code you ha...
Billz Avatar
Posted By Billz
Sun Jan 05 2020, 08:17 PM
Need help regarding C code (specifically for PIC 1...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Dec 30 2019, 06:42 PM
Can you give more details of your problem.
Rupeshpatil Avatar
Posted By Rupeshpatil
Fri Dec 27 2019, 06:21 PM
How to copy program my old microcontroller to new ...
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 02:26 PM
wil do.thank you for your advice!