help!! how to write data to EEPROM?
danlo
Posts: 5
I want input a number (e.g 123) by using 4x4 keypad, and then, store it into EEPROM and display it to LCD..
'VAR
number···· VAR···· word
'Data
store_num ·DATA··· 120
Main:
........··········· ' code to get number, number = 123
write 120, number
.......
What wrong of my programe?·Would you·give me an example? ...thank you so much!!
·
'VAR
number···· VAR···· word
'Data
store_num ·DATA··· 120
Main:
........··········· ' code to get number, number = 123
write 120, number
.......
What wrong of my programe?·Would you·give me an example? ...thank you so much!!
·
Comments
The examples in the Help file cover the use of this instruction quite well.
If you have more questions, posting the working part of your program would help everyone understand your problem a bit better.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
store_num DATA @120,0
the @ defines the address, the 0 is a dummy data
otherwise store_num's address is determined by the compiler.
if you don't use @ the label "store_num" represent the address, so you might as well use it:
write store_num,number
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Have Fun
TR
Post Edited (TechnoRobbo) : 1/26/2007 7:40:52 PM GMT