EasyManua.ls Logo

Portwell RUBY-9715VG2AR - Example

Default Icon
92 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
System Installation
RUBY-9715VG2AR User’s Manual 3-13
3.6.3 Example
Define GPIO4 as 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,29h ; Read CR29
out dx,al
mov dx,2fh
in al,dx
or al,40h ; Set GPIO multiplexed pins as bit 7,6 as 01 for
; Group 1 as GPIO
mov ah,al
mov dx,2eh
mov al,29h
out dx,al
mov dx,2fh
mov al,ah
out dx,al
mov dx,2eh
mov al,07h ; Point to LDN7
out dx,al
mov dx,2fh
mov al,07h
out dx,al
mov dx,2eh ; Read CR30
mov al,30h
out dx,al
mov dx,2fh
in al,dx
or al,01h
mov ah,al
mov dx,2eh ; CR30_Bit0.P1
mov al,30h
out dx,al
mov dx,2fh
mov al,ah
StockCheck.com
Downloaded from StockCheck.com

Related product manuals