这样呀,我再看看
我看了这一段,以为有中断:
10.2.4 Watchdog Timer+ Interrupts
The WDT+ uses two bits in the SFRs for interrupt control.
• The WDT+ interrupt flag, WDTIFG, located i
详情回复
发表于 2013-1-23 20:54
10.2.4 Watchdog Timer+ Interrupts
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.
Watchdog timer+ interrupt flag. In watchdog mode, WDTIFG remains set until reset by software. In interval
mode, WDTIFG is reset automatically by servicing the interrupt, or can be reset by software. Because other
bits in IFG1 may be used for other modules, it is recommended to clear WDTIFG by using BIS.B or BIC.B
instructions, rather than MOV.B or CLR.B instructions.