PICAXE 28X EEPROM strangeness

amdunn

New Member
I must be losing my marbles. Have downloaded the following proggy to a 28X (actually two 28Xes, swapped it just to ensure it wasn't a bad chip):

eeprom 0,(14)
read 0,b0
sertxd("Startup location 0=",#b0,13,10)
write 0,69

One would assume that on first run, the value printed would be 14, and after subsequent resets, the value 69, yes?

In actual fact, the value read and printed out is ZERO each time!

What am I doing wrong, or has anyone else encountered this strange behaviour?
 

dog

New Member
Just tested your code (sort of)-

eeprom 0,(14)
read 0,b0
sertxd("Startup location 0=",#b0,13,10)
write 0,69
read 0,b0
sertxd("Startup location 0=",#b0,13,10)

and found it works fine on my 28x on the AXE022 board.

Cheers,
Dog.
 
Top