Go Down

Topic: Reset (Read 2041 times) previous topic - next topic

Grumpy_Mike

I think the thread is wandering a bit.
Lets focus.

The original question:-
Quote
Is it possible to reset or reboot the arduino from the program.

begs the question why.
this was:-
Quote
but i need to reset the millis every 12hours


Is this the only reason what you want to reset?
If so why not re zero the millis counter in software?

Other alternatives are:-

1) Making a jump through the reset vectors.
2) Using the watchdog timer and stop kicking it when you have exceeded the time you want to re start it.

Only then do you need to resort to hardware.

AWOL

Quote
) Making a jump through the reset vectors

But this won't necessarily leave the hardware registers in the same state as they would be in following a reset.
It will restart your program, certainly.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

DrLabel

What you mean :
Is this the only reason what you want to reset?
If so why not re zero the millis counter in software?

Other alternatives are:-

1) Making a jump through the reset vectors.
2) Using the watchdog timer and stop kicking it when you have exceeded the time you want to re start it.

Only then do you need to resort to hardware.

????


sorry i din't find the quote :|

how can i don that???

Go Up