Appendix a - watchdog timer, A.1 sample code, Appendix a, watchdog timer: prese – ADLINK NuPRO-E340 User Manual
Page 87: A appendix: watchdog timer, Sample code
Watchdog Timer
73
NuPRO-E340
Appendix A - Watchdog Timer
A sample program for configuring the NuPRO-E340’s watchdog
timer is included on the ADLINK All-in-One DVD in the following
directory: \NuPRO\NuPRO-E340\WDT.
A.1 Sample Code
#include
#include
static unsigned int IT8783_ioPort = 0x2e;
void Enter_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
switch(IT8783_ioPort)
{
case 0x2E: //Address port = 0x2E, enter keys =
0x87, 0x01, 0x55, 0x55
outportb(0x2E, 0x87);
outportb(0x2E, 0x01);
outportb(0x2E, 0x55);
outportb(0x2E, 0x55);
break;
case 0x4E: //Address port = 0x4E, enter keys =
0x87, 0x01, 0x55, 0xAA
outportb(0x4E, 0x87);
outportb(0x4E, 0x01);
outportb(0x4E, 0x55);
outportb(0x4E, 0xAA);
break;
default:
break;
}
}
void Exit_IT8783_Config(unsigned int flag)
{
if(flag) IT8783_ioPort = 0x4e;
outportb(IT8783_ioPort, 0x02);
outportb(IT8783_ioPort+1, 0x02);
- USB-1901 (84 pages)
- USB-1210 (54 pages)
- USB-2401 (60 pages)
- USB-7230 (50 pages)
- USB-2405 (56 pages)
- DAQe-2010 (92 pages)
- DAQe-2204 (100 pages)
- DAQe-2213 (94 pages)
- DAQe-2501 (74 pages)
- PXI-2010 (84 pages)
- PXI-2020 (60 pages)
- PXI-2501 (62 pages)
- cPCI-9116 (98 pages)
- ACL-8112 Series (94 pages)
- ACL-8112 Series (92 pages)
- ACL-8112 Series (93 pages)
- ACL-8216 (75 pages)
- ACL-8111 (61 pages)
- PCM-9112+ (10 pages)
- PCM-9112+ (94 pages)
- cPCI-6216V (47 pages)
- ACL-6126 (28 pages)
- ACL-6128A (40 pages)
- PCM-6308V+ (52 pages)
- PCM-6308V+ (4 pages)
- PCI-7444 (82 pages)
- PCI-7434 (48 pages)
- PCI-7234 (56 pages)
- PCI-7260 (66 pages)
- PCI-7258 (38 pages)
- PCI-7256 (48 pages)
- PCI-7250 (48 pages)
- LPCI-7250 (48 pages)
- PCI-7396 (65 pages)
- PCI-7296 (59 pages)
- PCI-8554 (67 pages)
- PCIe-7360 (94 pages)
- PCIe-7350 (86 pages)
- PCIe-7300A (114 pages)
- PCIe-7200 (51 pages)
- PCI-7300A (112 pages)
- PCI-7300A (83 pages)
- PCI-7200 (96 pages)
- cPCI-7300 (82 pages)
- cPCI-7300 (83 pages)