zhilik (29.07.2006 21:52, просмотров: 1) ответил Klevo на Как определить сброс по WDT или питанию?
Ответ: RTFM так-сказать :-) The WDT uses two bits in the SFRs for interrupt control.
The WDT interrupt flag, WDTIFG, located in IFG1.0
The WDT interrupt enable, WDTIE, located in IE1.0
When using the WDT in the watchdog mode, the WDTIFG flag sources a reset vector interrupt. The WDTIFG can be used by the reset interrupt service routine to determine if the watchdog caused the device to reset. If the flag is set, then the watchdog timer initiated the reset condition either by timing out or by a security key violation. If WDTIFG is cleared, the reset was caused by a different source.