TDS e28 User Manual page 29

Epic sbc supports intel atom n270 processor with gigabit lan / lvds / tv out / 2com / wifi
Table of Contents

Advertisement

outportb(IO_Port_Address,0x87);
outportb(IO_Port_Address,0x87);
outportb(IO_Port_Address,0x07);
outportb(IO_Port_Address+1,0x07);
outportb(IO_Port_Address,0x30);
outportb(IO_Port_Address+1,0x01);
outportb(IO_Port_Address,0xF5);
outportb(IO_Port_Address+1,inportb(IO_Port_Address+1)&0xF7);
outportb(IO_Port_Address,0xF5);
outportb(IO_Port_Address+1,inportb(IO_Port_Address+1)|0x10);
outportb(IO_Port_Address,0xF6);
outportb(IO_Port_Address+1,Time);
outportb(IO_Port_Address,0xFA);
outportb(IO_Port_Address+1,inportb(IO_Port_Address+1)|0x01); // bit0=1
outportb(IO_Port_Address,0xF5);
outportb(IO_Port_Address+1,inportb(IO_Port_Address+1)|0x20); // bit5=1
textcolor(YELLOW);
for(Temp=Time;Temp>0;Temp--)
{ outportb(IO_Port_Address,0xF6);
Time=inportb(IO_Port_Address+1);
gotoxy(20,10);
cprintf(">>> After %3d Second will reset the system. <<<",Time);
delay(1000);
}
textcolor(LIGHTRED);
gotoxy(18,10);
// Enter Configuration
// Point to Logical Device Number Reg.
// Select logical device 7, (Watchdog Function)
// Device Active register
// Select Watchdog count mode seconds or minutes
// Select Watchdog output mode
// Set Watchdog Timer Value
// 0x00 to disable, max 0xFF
// Set Watchdog Time out output via WDTRST
// Start Watchdog Time counting
// Read Watchdog Timer Value
29
// Default is second, bit3=0
// Set to Pulse mode, bit4=1
E28 User Manual

Advertisement

Table of Contents
loading

Related Products for TDS e28

Table of Contents