Download User Manual
Transcript
and al,10111111b xchg ah,al call writechip mov ax,083bh call writechip mov ax,003ah call writechip mov ax,0039h call writechip mov ax,3838h call readchip and al,00001111b or al,11010000b xchg ah,al call writechip mov ax,3737h or al,01000000b xchg ah,al call writechip mov ax,0013h mov writechip mov ax,4c00h int 21h endp readchip proc c out 22h,al nop nop in al,23h nop nop writechip proc c out 22h,al nop nop xchg ah,al out 23h,al nop nop xchg ah,al ret endp end ; Set the expected counter value ; to [080000h] ; 30.5usc * 080000h = 16 sec ; Select “System reset “ as timeout action ; Enabled watchdog timer ; Lock config register 21 21