Pch 7991 – Acnodes PCH 7991 User Manual
Page 62

PCH 7991
19 inch Atom Fanless Panel PC
© Copyright 2012 Acnodes, Inc.
All rights reserved. Product description and product specifications
are subject to change without notice. For latest product information,
please visit Acnodes’ web site at www.acnodes.com.
14628 Central Ave.
Chino, CA91710
Tel:909.597.7588, Fax:909.597.1939
Activate the logic device
Examp le x86 assembly code:
mov
dx, 4E h
mov
al, 0 30 h
; Logic device a ctivation control reg.
out
dx, al
mov
dx, 4Fh
in
al, d x
or
al, 004h
;S et bit2 to enable G PIO P ort6 if LDN =8
or
al, 002h
;S et bit1 to enable G PIO P ort2 if LDN =9
out
dx, al
E xample C code:
outportb(0x4E, 0x30);
//Logic de vice activa tion control
outportb(0x4 F, (inportb(0x4F)|0x2));
//S et bit[1] to enable GP IO P ort2 if LDN= 9
Or
outportb(0x4E, 0x30);
//Logic de vice activa tion control
outportb(0x4 F, (inpo rtb(0x4F)|0x4));
//S et bit[2] to enable GP IO P ort6 if LDN= 8
C onfigure GPIO register
Examp le x86 assembly code:
mov
dx, 4E h
mov
al, 0 E6h
;GP IO inversion reg.
out
dx, al
mov
dx, 4Fh
mov
al, 000h
;0
– normal, 1 - inverted
out
dx, al
mov
dx, 4E h
mov
al, 0 E4h
;GP IO I/O selecti on reg.
out
dx, al
mov
dx, 4Fh
mov
al, 0FFh
;0
– O utput, 1 – Input
;or mov a l, 0F0h to set output
out
dx, al