NEXCOM NDiS 127 User Manual
Page 66
Copyright © 2012 NEXCOM International Co., Ltd. All Rights Reserved.
41
NDiS 127 User Manual
Appendix A: Watchdog Timer
outportb(INDEXP,reg);
outportb(DATAP,val); }
//1.Initialize Watchdog device
short SIOWTD_Setup(short irq)
{
//Start programming Watchdog
STARTPROG
//Activate the Watchdog Device
SELEDEV(7) //Select Logical device7
WRITEREG(0x30,0x01) //Activate the device
//end programming watchdog
ENDPROG
return 0;
}
//2.start Watchdog to count
short SIOWTD_Enable(short time,short unit)
/*unit=0:second,=1:minutes */
{
if(time<1 || time>255) return -1;
if(unit<0 || unit>1) return -1;
//start programming watchdog
STARTPROG
SELEDEV(7) //logical device 7
/ /lect Watchdog Timer clock
switch(unit)
{
case 0:
//BIT7=1,secondes;BIT6=1 enable,BIT6=0 disable
WRITEREG(0x72,0xC0)
break;
case 1:
//BIT7=0,minutes BIT6=1 enable,BIT6=0 disable
WRITEREG(0x72,0x40)
break;
default:
break;
}
WRITEREG(0x73,time) //t timeout value
//end programming watchdog
ENDPROG
return 0;
}
- EBC 352 (68 pages)
- EBC 353 (62 pages)
- EBC 355 (63 pages)
- EBC 354 (63 pages)
- ICES 268 (96 pages)
- ICES 667 (100 pages)
- ICES 254 (98 pages)
- NEX 604 (61 pages)
- NEX 608 (67 pages)
- ICES 668 (105 pages)
- NEX 607 (75 pages)
- NEX 609 (61 pages)
- NEX 611 (51 pages)
- NEX 613 (45 pages)
- NEX 617 (53 pages)
- NISE 101 (79 pages)
- NISE 104 (78 pages)
- NISE 2020 (84 pages)
- NISE 105A (78 pages)
- NISE 103 (83 pages)
- NISE 2110A (87 pages)
- NISE 2420 (84 pages)
- NISE 301 (74 pages)
- NISE 2310E (107 pages)
- NISE 2210E (110 pages)
- NISE 3100eP2 (75 pages)
- NISE 300 (95 pages)
- NISE 3140P2E (88 pages)
- NISE 3520P2E (125 pages)
- MAC 3500P2-GTS8 (120 pages)
- NISE 3600E (102 pages)
- NISE 3720P2E (85 pages)
- NISE 3640P2E (105 pages)
- NISE 3640M2E (108 pages)
- NISE 4000 (102 pages)
- nTUF 600 (100 pages)
- NEX 716VL2G (71 pages)
- NISE 4000P4E (128 pages)
- NISE 4000P2E (131 pages)
- NEX 732L2G (71 pages)
- NEX 883 (53 pages)
- NEX 890 (58 pages)
- NEX 980 (52 pages)
- NEX 852VL2 (62 pages)
- NEX 981 (47 pages)