![Norco BIS-6660C User Manual Download Page 65](http://html1.mh-extra.com/html/norco/bis-6660c/bis-6660c_user-manual_1700780065.webp)
BIS-6660C
User Manual
52
Appendix 2
:
Watchdog Programming Guide
watchdog reference code
(
C
)
Write data to corresponding ports in C language to realize different functions of Watchdog
Timer.
Port Instruction:
void main()
{
int indexp = 0x4e,datap = 0x4f;
unsigned char temp;
Outportb(indexp,0x87);
Outportb(indexp,0x87); //unlock
Outportb(indexp,0x2d);
temp = (unsigned char) inportb (datap);
temp &= 0xfe;
Outportb(indexp,0x2d);
Outportb(datap,temp); //set pin for watchdog
Outportb(indexp,0x07);
Outportb(datap,0x08);
Outportb(indexp,0x30);
Outportb(datap,0x01); //enable logical device
Outportb(indexp,0xf5);
Outportb(datap,0x00); //set second
Outportb(indexp,0xf6);
Outportb(datap,0x05); //set 5seconds
Outportb(indexp,0xf7);
Outportb(datap,0x00);
Outportb(indexp,0xaa); //lock
}
If the system crashes, Watchdog enables system to auto reboot.
Summary of Contents for BIS-6660C
Page 1: ...BIS 6660C USER Manual V1 0...
Page 10: ...Chapter 1 Product Introduction...
Page 13: ...Chapter 2 Installation Instructions...
Page 22: ...BIS 6660C User Manual 11 2 8 Rack Dimension...
Page 23: ...Chapter 3 Hardware Functions...
Page 31: ...BIS 6660C User Manual 20 SATA Pin Signal Name 1 GND 2 TX 3 TX 4 GND 5 RX 6 RX 7 GND...
Page 35: ...Chapter 4 BIOS SETUP...
Page 45: ...BIS 6660C User Manual 33 3 2 5 Serial Port Console Redirection...
Page 63: ...Appendix...
Page 69: ......