Discussion in "New Ideas regarding projects" started by    rawat742    Aug 13, 2017.
Sun Aug 13 2017, 06:01 PM
#1
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
#2
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
#3
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
#4
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)
http://www.8051projects.net/download-d253-led-scrolling-message-display-using-8051.html

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
#5
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
#6
Try this.
Attachment
Fri Aug 18 2017, 11:19 AM
#7
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
#8
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
#9
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
s=count;
y= s /10;
d11=s%10;
d22=y%10;
d33=y/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

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

WriteDataToLCD(x);

}

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

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

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Dec 09 2019, 06:40 AM
Cheryle Lamaro
Want to submit your business on tons of online ad sites monthly? One tiny investment every month will get you almost unlimited traffic to your site forever!To find out more check out our site here: http://www.submitmyadnow.tech
Thu Nov 21 2019, 12:30 PM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
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
Nathaniel
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,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.

Downloads

Comments

gffreezedrymachine
Mon Dec 09 2019, 11:35 AM
nabiha_anaya
Sun Dec 08 2019, 09:16 AM
ananyagupta
Tue Dec 03 2019, 07:53 AM
wells
Mon Nov 25 2019, 08:25 PM
auwal
Tue Nov 19 2019, 03:13 PM
ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM
DeepakBGattani
Mon Nov 11 2019, 01:31 PM

Online

Guests: 42, Members: 0 ...

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

Members: 38109
Newest member: gffreezedrymachine
Forum Activity
gffreezedrymachine Avatar
Posted By gffreezedrymachine
Mon Dec 09 2019, 12:03 PM
Dried fruit has been available for thousands of ye...
ilylily07 Avatar
Posted By ilylily07
Sun Dec 08 2019, 01:24 PM
Hi .im humbly ask for your advice as i wrongly pur...
nabiha_anaya Avatar
Posted By nabiha_anaya
Sun Dec 08 2019, 09:19 AM
My teacher assign me a project on "voice control h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Nov 29 2019, 04:24 AM
" Is it possible to interface a fingerprint scanne...
ilylily07 Avatar
Posted By ilylily07
Thu Nov 28 2019, 03:50 PM
You will not find any code for an 8051 as no one w...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 05:44 PM
You will not find any code for an 8051 as no one w...
ilylily07 Avatar
Posted By ilylily07
Tue Nov 26 2019, 04:13 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 12:08 AM
I tracked down a OV7670 data sheet.The OV7670 puts...
ilylily07 Avatar
Posted By ilylily07
Mon Nov 25 2019, 04:38 PM
The 8051 has too little memory to do anything us...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 19 2019, 10:44 PM
The 8051 has too little memory to do anything us...