Hi,
I am currently doing a project that requires a 14M PICAXE chip to store a 62000 and below number in the epprom memory. (So when it is turned off the number is still stored in the memory.) My idea was that I could use all of the 255 memory location to store it. Here I am trying to read it and it doesn't work. See my code here:
(It is the bit in between the FOR and NEXT commands)
(the final result should end up in w6)
Any help would be greatly appreciated!
Thanks,
Mike
I am currently doing a project that requires a 14M PICAXE chip to store a 62000 and below number in the epprom memory. (So when it is turned off the number is still stored in the memory.) My idea was that I could use all of the 255 memory location to store it. Here I am trying to read it and it doesn't work. See my code here:
(It is the bit in between the FOR and NEXT commands)
(the final result should end up in w6)
Code:
write 0, 1
''Read eeprom data (address)
read 0, b12
if b12 = 0 then
w5 = 3
w6 = 1
else
for b9 = 0 to 255 step 1
b8 = 0
read b9,b8
w6 = w6 + b8
next
endif
b12 = 0
Thanks,
Mike