System Installation
ROBO-8777VG2A User’s Manual
3-11
3.8.3 Example
Define GPIO20 input and GPIO34 output pin, and output “0” to this pin.
mov
dx,2eh
; Enter Configuration Mode
mov al,87h
out dx,al
jmp $+2
out dx,al
mov dx,2eh
mov
al,2Ah
; Read CR2A
out dx,al
mov dx,2fh
in al,dx
and al,07Fh
;
CR2A_Bit[0].P[0]
out dx,al
mov dx,2eh
mov
al,07h ;Point to LDN9
out dx,al
mov dx,2fh
mov al,09h
out dx,al
mov
dx,2eh ;Read CR30
mov al,30h
out dx,al
mov dx,2fh
in al,dx
or al,03h
out dx,al
mov dx,2eh
mov
al,0E3h ;Read LD9_CRE3
out dx,al
mov dx,2fh
in al,dx
and al,0FEh
out dx,al