MITX-6973 User Manual54AppendixAppendix:Watchdog Programming Guidewatchdog reference code(C)-----------------------------------------------------------------------------------------------------------------------------Set the port to realize watchdog function through DEBUG order, so that it can carry outWatchdog Timer’s various functions.Port Instructions:void main(){int indexp = 0x2e,datap = 0x2f;unsigned char temp;Outportb(indexp,0x87);Outportb(indexp,0x87); //unlockOutportb(indexp,0x07);Outportb(datap,0x07);Outportb(indexp,0x30);Outportb(datap,0x01); //enable logical deviceOutportb(indexp,0xf6);Outportb(datap,0x05); //set 5secondsOutportb(indexp,0xfa);Temp=Inportb(datap)|0x01;//WDOUT_ENOutportb(datap,temp);Outportb(indexp,0xf5);Temp=Inportb(datap)|0x60;//WD_ENOutportb(datap,temp);Outportb(indexp,0xaa); //lock}