On Fri, 10 Nov 2000 14:15:50 +0100, you wrote: >If I implement a "system health scanner", and it detects a corrupted = register, a routine finding an anomalyty, strange error, or something... = Then i want to reboot the system immediately rather than wait for = watchdog. > >So I want to effectively assert a hardware reset signal, that is = guaranteed to reset every pheripheral, also any state that is not = writeable as register. > >(I can make a startup routine that initializes every writeable register = but... reset seem more confident.) > >Is there a way to force true reset, other than connecting reset pin to = an output pin or wait for watchdog? Can the Wdog be deliberately = triggered? The only way to guarantee a WDT reset is to wait for it. However in some circumstances you can reduce the _avarage_ WDT reset time. If the normal WDT prescale is 1, switching to a higher prescale can cause an immediate WDT reset if the corresponding bit of the prescaler is set. Setting the WDT prescale value to each value in turn would have a fairly high probability of causing an immediate WDT reset.=20 ALternatively, you could probably force the prescaler by assigning to TMR0 with internal clock, waiting until it will have incremented and then re-assigning it to the WDT. =20 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.