Hello,
I need information about non-volatile memory.
Firstly, this is one part of my program. It'll be easier to explain my
problem :
if (SAU_A == high & SAN_A == high) then
n = 1
repeat
if (n==1 & SAD_A == high) then
repeat
first = adc_read(0) <---<---<---
until(SAD_A == low)
n = n+1
end if
fd = first - ramin
fu = first + ramax
until(SAU_A == low)
end if
So when I push on the buttons (SAN_O, SAU_O and SAD_O), it allow to read
the analog input and save the value into variable first (var dword first)
(see line with the arrows).
The problem is that when I turn off the micro-controller (remove the
battery) it looses the variable first. I would like to keep in memory the
variable even if I turn off the micro-controller.
Do you know how can I put the value in the eeprom or something equivalent ?
Kind regards,
Sébastien
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/jallib/-/kHjus_Z8PeUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.