AIMB-330F Userís Manual 82Appendix A Programming the WatchdogTimerA.1 Programming the watchdog timerThe following example shows how you might program the watchdogtimer in assembly:Watch Dog:;-----------------------------------------------------------------------------------; Enter the extended function mode ,interruptible double-write |;-----------------------------------------------------------------------------------MOV DX,2EHMOV AL,87HOUT DX,ALOUT DX,AL;-----------------------------------------------------------------------------; Configurate logical device 8, configuration register CRF6 |;-----------------------------------------------------------------------------MOV DX,2EHMOV AL,07H ; point to Logical Device Number Reg.OUT DX,ALMOV DX,2FHMOV AL,08H ; select logical device 8OUT DX,AL;MOV DX,2EHMOV AL,30H ;Set watch dog activate or inactivateOUT DX,ALMOV DX,2FHMOV AL,01H ; 01:activate 00:inactivateOUT DX,AL;