Using #no_data
Without the #no_data directive the EEPROM will be pre-loaded with 1, 2 and 3 whenever the program is downloaded. Immediately after every download the debug command will show b0=0, b1=1 and b2=2. With the #no_data directive included the EEPROM will not be pre-loaded and the debug will show the values within EEPROM before the download; b0=10, b1=11 and b2=12.
- Code Example:
-
#no_data data 0, ( 0, 1, 2 ) read 0, b0 read 1, b1 read 2, b2 debug write 0, 10 write 1, 11 write 2, 12
Copy Code Submit an Example
Submit Your Own Code!
You must be logged in to submit code examples. Login now.