INSTALLATIONS
mov | cl, 0F5h |
|
call Read_Reg |
| |
and al, NOT 08h |
| |
call Write_Reg | ;set count mode as second | |
pop ax |
|
|
mov | cl, 0F6h |
|
call Write_Reg | ;set watchdog timer | |
mov | al, 01h |
|
mov | cl, 30h |
|
call Write_Reg | ;watchdog enabled |
call Lock_Chip ret
Enable_And_Set_Watchdog Endp ;[]=============================================== ; Name : Disable_Watchdog
; IN : None
;OUT : None ;[]===============================================
Disable_Watchdog Proc Near
call Unlock_Chip
mov | cl, 07h |
|
mov | al, 08h |
|
call Write_Reg | ;switch to LD8 | |
xor al, al |
| |
mov | cl, 0F6h |
|
call Write_Reg | ;clear watchdog timer | |
xor al, al |
| |
mov | cl, 30h |
|
call Write_Reg | ;watchdog disabled |
call Lock_Chip ret
Disable_Watchdog Endp ;[]===============================================
24 | MB820 User’s Manual |