Assembler sample program – Acnodes FES 8730 User Manual

Page 67

Advertising
background image


Assembler Sample Program

;Enable WDT:

Mov dx,4Eh

Mov al,87h ;Un-lock super I/O

out dx,al

out dx,al

;Select Logic device:

mov dx,4Eh

mov al,07h

out dx,al

mov dx,4Fh

mov al,08h

out dx,al

;Activate WDT:

mov dx,4Eh

Mov al,30h

out dx,al

mov dx,4Fh

mov al,01h

out dx,al

;Set Second or Minute :

Mov dx,4Eh

Mov al,0F0h

out dx,al

mov dx,4Fh

mov al,

N

h ;

N

=00h or 08h(See below

Note

)

out dx,al

;Set base timer :

mov dx,4Eh

mov al,0F1h

out dx,al

mov dx,4Fh

mov al,

M

h ;

M

=00h,01h,02h,.....FFh (Hex),Value=0 to 255

out dx,al ; (See below

Note

)

Advertising