BIS-6330A Digital Signage Player45AppendixAppendix 1: 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 Instruction:void main(){int indexp = 0x2e,datap = 0x2f;unsigned char temp;Outportb(indexp,0x87);Outportb(indexp,0x87); //unlockOutportb(indexp,0x2d);temp = (unsigned char) inportb (datap);temp &= 0xfe;Outportb(indexp,0x2d);Outportb(datap,temp); //set pin for watchdogOutportb(indexp,0x07);Outportb(datap,0x08);Outportb(indexp,0x30);Outportb(datap,0x01); //enable logical deviceOutportb(indexp,0xf5);Outportb(datap,0x00); //set secondOutportb(indexp,0xf6);Outportb(datap,0x05); //set 5secondsOutportb(indexp,0xf7);Outportb(datap,0x00);Outportb(indexp,0xaa); //lock}If system halted, the watchdog enables the system to reboot automatically.