Hi again!
I have planned a program where I need to set different numbers to lcd screen like: 32,45
Each number can get value from 0 to 9.
number 3 is stored to b1, 2 to b2, 4 to b4 and 5 to b4
At end of the program I have a code:
and at teh beginning:
The big problem is that
when i have in the end:
write b6, b1
write b7, b2
write b8, b3
write b9, b4
that means that values b1, b2, b3 get same value than b4. When I change line orders the other b1-b4 places get their values from the last line in the code. I suppose you understand the point.
So...how could I solve this problem or is there other methods to store data to non-volatile memory?
I have planned a program where I need to set different numbers to lcd screen like: 32,45
Each number can get value from 0 to 9.
number 3 is stored to b1, 2 to b2, 4 to b4 and 5 to b4
At end of the program I have a code:
Code:
write b6, b1
write b7, b2
write b8, b3
write b9, b4
Code:
let b5 = 198
read b6, b1
read b7, b2
read b8, b3
read b9, b4
low b.0
pause 1000
serout b.0, n2400, (254, 1)
pause 600
main:
serout b.0, n2400, ( 254, 128 )
program continues....
when i have in the end:
write b6, b1
write b7, b2
write b8, b3
write b9, b4
that means that values b1, b2, b3 get same value than b4. When I change line orders the other b1-b4 places get their values from the last line in the code. I suppose you understand the point.
So...how could I solve this problem or is there other methods to store data to non-volatile memory?