WatchDog
 
 
 Bean WatchDog
 
WatchDog bean
Low Level Bean

This bean implements a watchdog. When enabled, the watchdog timer counts until it reaches a critical value corresponding to the period specified in Properties. Then, the watchdog causes a CPU reset or a NMI (non-maskable interrupt) that can be serviced by a subroutine (see OnWatchDog event).
Applications may clear the timer before it reaches the critical value. The timer then restarts the watchdog counter.

The watchdog is used for increasing the system safety: unexpected situations may cause a system crash or an infinite loop - in these cases, the watchdog can restart the system or handle the situation.

If the watchdog counter may be enabled only once after the CPU reset, Enable and Disable methods are permanently disabled, Enable in init code property is permanently set to yes and the bean is enabled in all speed modes.

Version specific information for HCS12 derivatives:
After COP timeout and reset of the chip, a specific reset vector is processed. "OnWatchDog" event is called immediately after fetching this reset vector. That means Processor Expert and/or startup initializations have not been done at the time "OnWatchDog" event is called and they are processed after return from the event.


This bean belongs to the category: CPU Internal Peripherals-Timer



Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.