Log in

View Full Version : How can I initialize the EEPROM when programming



luxornet
- 17th November 2014, 09:20
Hi!
My PicBasic program use some EEPROM address to store variables. I wonder how can I initialize these EEPROM address (I use about 5-6 bytes) at programming time.
I use PicBasic 3.0.7 and PicKit3.

Thank you.

HenrikOlsson
- 17th November 2014, 09:25
Hi,
That's what you use the DATA statement for. See section 5.14 in the manual. (http://pbp3.com/downloads/PBP_Reference_Manual.pdf)

/Henrik.

luxornet
- 17th November 2014, 09:31
Thank you very much, HenrikOlsson.
The DATA statement is exactly what I need (but I never use it until now).