piclist 2001\06\22\115355a >
Thread: software reset
www.piclist.com/techref/microchip/devices.htm?key=pic
flavicon
face BY : Mike Mansheim email (remove spam text)



> One question only.
> Why do you need the software interrupt?
> I can't see a task, in which it's necessary.

Assuming the question is actually asking why a software "reset" might
be useful (I don't think "interrupt" was the intent):
My programs all end up divided into an init section, which is executed
once at boot, and the main running section, which is an endless loop, or
set of state machines, or whatever.
I have an application that reads several "calibration constants" from
eeprom as part of the init.  One of the things that can be done from
the main running section is a user can adjust some of these constants.
To have the changes take effect, it seemed cleaner in this case to
reset the processor, and have the init section execute again and read
the new values.
I used the watchdog to accomplish this, and it worked quite well.  If
you speed up the time-out, the re-boot can appear instantaneous.  I
also took advantage of the POR status bit to distinguish between a
watchdog reset and the initial power-up.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


<OF1090E0E3.E2583A91-ON86256A73.0054376F@graco.com>

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) software reset

month overview.

new search...