Watchdog Timer
63
void write_config_data_byte(unsigned
char,unsigned char);
unsigned char read_config_data_byte(unsigned
char);
unsigned int read_wdt_io_base();
/* access wdt I/O registers routines */
void write_preload_val2_reg(unsigned long int);
void clear_preload_val1_reg();
void unlocking_reg();
/* Global parameter */
unsigned int wdt_io_base;
void main(void)
{
//
unsigned int wdt_io_base;
unsigned long int time_out_val=0;
wdt_io_base=read_wdt_io_base();
printf("Intel 3100 Chipset Watch-Dog Timer
test utility.\n");
printf("Intel 3100 WDT IO Base Address ==
0x%x\n",wdt_io_base);
while(1)//
(time_out_val==0)||(time_out_val>1050))
{
//3sec
printf("Please input the time to count
down (1-1050 sec): ");
//3sec
scanf("%d",&time_out_val);
}
//3sectime_out_val=time_out_val*1000;//transfer
to msec unit.
time_out_val=time_3000; //3sec
clear_preload_val1_reg();//we don't need
preload_val1 caused internal interrupt.
write_preload_val2_reg(time_out_val);//
write preload_val2 ,it will cause external
interrupt.(WDT_TOUT#)
Summary of Contents for cPCI-3920 Series
Page 8: ...iv Table of Contents This page intentionally left blank ...
Page 16: ...6 Overview This page intentionally left blank ...
Page 25: ...Specifications 15 cPCI R3920 cPCI R3920T Figure 2 2 cPCI R3920 Mechanical Dimensions ...
Page 63: ...Functional Description 53 CompactPCI Connector rJ2 ...
Page 70: ...60 Driver Installation This page intentionally left blank ...
Page 102: ...92 BIOS Setup Utility This page intentionally left blank ...