How do we soft reset microcontroller without the help of Watch dog timer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How do we soft reset microcontroller without the help of Watch dog timer?

Using only C code without any hardware intervention.

2nd Jun 2020, 2:17 PM
Satheesh Kumar
8 Answers
+ 1
Yh....but there are consequences if it's a slightly complex project
2nd Jun 2020, 2:38 PM
Ambele Newton
Ambele Newton - avatar
+ 2
What I mean is Only using C code not using any hardware pin
2nd Jun 2020, 2:29 PM
Satheesh Kumar
+ 2
Thanks Thunderbolt. I was thinking same as a last resort
2nd Jun 2020, 2:37 PM
Satheesh Kumar
+ 1
Thanks Thunderbolt. What I actually want is without accessing any hardware pin even through software
2nd Jun 2020, 2:33 PM
Satheesh Kumar
+ 1
Connect one of the high-impedance I/O to the pull-high !reset pin, initiate a low pulse to reset it.
2nd Jun 2020, 2:35 PM
Calviղ
Calviղ - avatar
0
Maybe pass a high value to its reset pin...
2nd Jun 2020, 2:28 PM
Ambele Newton
Ambele Newton - avatar
0
Yes...If u hv the .h needed, there are definitions for each pin it wld be something like RESETPINNAME = 0x7fffffff;
2nd Jun 2020, 2:31 PM
Ambele Newton
Ambele Newton - avatar
0
Specially craft and cause an error that will crash the MC
2nd Jun 2020, 2:35 PM
Ambele Newton
Ambele Newton - avatar