Doc. # 1-0000076 | |||
---|---|---|---|
Date Updated | 01-22-2004 | Date Created | 07-27-2000 |
Document Type | Knowledge Base | Related OS | |
Related Product | ADAM-4500 |
How to program watchdog timer directly of ADAM-4500? | |||
---|---|---|---|
Solution:
The following are relative sub-routines about watchdog timer:
wdt_on()
{
outport(0xff76,inport(0xff76) | 0x2000); /* output mode
*/
outport(0xff78,inport(0xff78) & 0xdfff); /* 10 */
outport(0xff7a,inport(0xff7a) | 0x2000); /* WDI =1 */
}
wdt_clear()
{
outport(0xff7a,inport(0xff7a) & 0xdfff); /* WDI = 0 */
outport(0xff7a,inport(0xff7a) | 0x2000); /* WDI = 1 */
}
wdt_off()
{
outport(0xff76,inport(0xff76) & 0xdfff); /* normal mode */
outport(0xff78,inport(0xff78) & 0xdfff); /* 00 */
}
From the above information, you can know where the address of watchdog timer is.
|