Watchdog Timer
17-15
Keil Simulator
/*start short loop to test DWDT*/
for (i = 0; i < 4000; i ++)
{//idle delay
j = (i *13) % 4000;
}
//Disable watchdog timer before timer expires
WDTIMER |= 0x40;
WDTIMER &= ~0x40;
//Reinitialize watchdog, sinice it has just been disabled
init_watchdog ( );
/*start short loop to test RWDT*/
for (i = 0; i < 400; i ++)
{//idle delay
j = (i *13) % 4000;
}
/*Reset Watchdog Timer before Watchdog Timer Expires*/
WDTIMER |= 0x20;
WDTIMER &= ~0x20;
/*Infinite loop to test Watchdog Timer Time out with interrupt.
In the case in which the Watchdog Reset cannot be disabled,
there will not be any interrupts. The watchdog time would
eventually run out, and a reset procedure will be activated*/
while (1)
{
watchdog_loop = 1;
while (watchdog_loop);
}
}
Содержание MSC1210
Страница 1: ... December 2002 User s Guide SBAU077 ...
Страница 149: ...Digital Filter 12 13 Analog to Digital Converter Figure 12 5 Filter Frequency Responses ...
Страница 162: ...12 26 ...
Страница 234: ...Timers 17 6 Figure 17 4 Timer Counter 1 Mode 1 Figure 17 5 Interrupt System ...
Страница 273: ...Serial Port I O 17 45 Keil Simulator Figure 17 19 Clock Control Peripheral Figure 17 20 USART0 Preipheral ...
Страница 282: ...C 4 ...