program algorithm to store changed value

Status
Not open for further replies.

uday mehta

Advanced Member level 4
Joined
Dec 30, 2011
Messages
104
Helped
6
Reputation
12
Reaction score
6
Trophy points
1,298
Activity points
1,979
(for 8051 or any other micro-controller)
In my program I have a variable
u= 2;
another variable
v= user defined(user can enter any no using keypad);

now
u=v
will it change the value of "u" permanently? I mean when I will turn of the system and then turn it on again "u" will again get value 2.
I want that value of "u" will be remain same as "v" until I change the value of "v".
Is it possible?
 

According to the at89s52 datasheet page 1, it doesnt have eeprom. So an external one is needed. See pdf attached.

Allen
 

Attachments

  • www.atmel.com_images_doc1919.pdf
    155.8 KB · Views: 73

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…