Assembly sample code – Acnodes FES 8730 User Manual

Page 70

Advertising
background image



Assembly sample Code:

Set functionality:

;Start set LED Output program:


mov

dx,2Eh

;Un-lock super

I/O

mov

al,87h

out

dx,al

out

dx,al

mov

dx,2Eh

;Switch to LED

logic

device

mov

al,07h

out

dx,al

mov

dx,2Fh

mov

al,07h

out

dx,al


; Set LED output pins value.

mov dx,2Eh

mov al,0EDh

out dx,al

mov dx,2Fh

in al,dx

or al,Yh

;set output value Y

out dx,al

;bit4~5 are onboard LED Output pin

;4~5 state (1 High, 0 Low)

;(see below

Note1

)

Advertising