Acrosser Technology AR-V6002FL User Manual page 56

Hide thumbs Also See for AR-V6002FL:
Table of Contents

Advertisement

Format=0x00;
// Seconds
// Set Watchdog
outportb(IO_Port_Address,0x87); // (EFER) Extended Functions Enable Register
outportb(IO_Port_Address,0x87);
outportb(IO_Port_Address,0x2D); // Point to Global Reg.
// Select Multi-Function pin, (Bit0=0 Watchdog Function)
outportb(IO_Port_Address+1,(inportb(IO_Port_Address+1)&0xFE));
outportb(IO_Port_Address,0x07); // Point to Logical Device Number Reg.
outportb(IO_Port_Address+1,0x08);
outportb(IO_Port_Address,0x30); // Device Active register
outportb(IO_Port_Address+1,0x01);
outportb(IO_Port_Address,0xF5); // Select Watchdog count mode seconds or minutes
outportb(IO_Port_Address+1,Format); // Default is second
outportb(IO_Port_Address,0xF6); // Set Watchdog Timer Value
outportb(IO_Port_Address+1,Time);
while(1)
{
outportb(IO_Port_Address,0xF6);
Time=inportb(IO_Port_Address+1);
gotoxy(20,10);
if(Time_Format=='m' || Time_Format=='M')
cprintf(">>> After %d Minutes will reset the system. <<<",Time);
if(Time_Format=='s' || Time_Format=='S')
cprintf(">>> After %d Second will reset the system. <<<",Time);
}
return 0;
}
// Select logical device 8, (Watchdog Function)
// 0x00 to disable, max 0xFF
// Read Watchdog Timer Value
56
Revision: 1.0

Advertisement

Table of Contents
loading

Table of Contents