16f819 memory question

Started by meriachee April 6, 2006
I've been reading the datasheet and the instruction set from the
PicBasic Pro book, and cannot figure out how to write variables to
memory and read variables from memory.

All I am trying to do is store a variable, and have that non-volatile.

Does anybody have any experience doing this?
Use the write command.
ADDRESS VAR BYTE
VALUE VAR BYTE
TEMP VAR BYTE

ADDRESS = 1
VALUE = 50
WRITE ADRESS,VALUE ' save value to EEPROM
READ ADDRESS,TEMP ' read it back to TEMP

Jim
----- Original Message -----
From: meriachee
To: p...
Sent: Wednesday, April 05, 2006 10:20 PM
Subject: [piclist] 16f819 memory question
I've been reading the datasheet and the instruction set from the
PicBasic Pro book, and cannot figure out how to write variables to
memory and read variables from memory.

All I am trying to do is store a variable, and have that non-volatile.

Does anybody have any experience doing this?



SPONSORED LINKS Microcontroller Microprocessor Microchip pic
Microcontrollers Picmicro 8051 microprocessor
------
YAHOO! GROUPS LINKS

a..
------
This message has been processed by Firetrust Benign.