Restarting a Program

PiX

New Member
In order to jump back to the start of a program following an interrupt I have used the reset command.

My question: does ‘reset’ clear any data l’ve put in the eeprom using a ‘write’ command?
 
Last edited:

The bear

Senior Member
Hi PiX,
Welcome to the forum.
Your question is way above my pay grade.
However, you will be asked to supply all relevant information, regarding your query.
Like your program & voltage supply.
Good luck, Bear..
 

PhilHornby

Senior Member
In order to jump back to the start of a program following an interrupt I have used the reset command.

My question: does 'reset' clear any data I've put in the eeprom using a 'write' command?
No.

However, if you want to avoid clearing any data, you can use the RUN command. The manual erroneously says it's only available on the X2 Series, but it works fine on the 14M2 I just tried.

Rich (BB code):
#picaxe 14m2
#no_data

sertxd (cr,lf,"Hello, W0=",#W0)
inc W0
Pause 1000
run 0
This resets the hardware state and unwinds the subroutine call stack etc, but doesn't clear general variables.

Code:
Gives the following output:-

Hello, W0=0
Hello, W0=1
Hello, W0=2
Hello, W0=3
Hello, W0=4
Hello, W0=5
 
Top