Intel PCM-6892 Rev.B, Compact Board manual Else ifwatchdogoutputGP==13

Models: PCM-6892 Rev.B Compact Board

1 57
Download 57 pages 37.87 Kb
Page 54
Image 54

C ompact Board

P C M - 6 8 9 2 R e v . B

 

 

//Set Watch-Dog Timer 1~ 256 WriteAData(0xF2, time_val);

//set counter counts in second (or minute)

//Register F4 Bit 6 = 0/1 (minutes/seconds)

//For w83977EF only

WriteAData(0xF4, 0x40);

ExitConfigMode();

}

void init_w83977tf_aw_watchdog()

{

short int value;

//Enter W83977 Configure Mode EnterConfigMode();

//Select Device 7 SelectDevice(7); //Set Device Active WriteAData(0x30, 0x01);

//caution:skip this step will be a mistake!! if (watch_dog_output_GP==12)

{

//Set Register E2 to define GP12 WriteAData(0xE2, 0x0A);

}

else if(watch_dog_output_GP==13)

{

Appendix B Programming the Watchdog Timer B - 5

Page 54
Image 54
Intel PCM-6892 Rev.B, Compact Board manual Else ifwatchdogoutputGP==13