Pages: 1 [2]   Go Down
Author Topic: Reset  (Read 1299 times)
0 Members and 1 Guest are viewing this topic.
Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 504
Posts: 31325
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 236
Posts: 24267
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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???
Logged

Pages: 1 [2]   Go Up
Jump to: