beautypg.com

Pch 7991 – Acnodes PCH 7991 User Manual

Page 64

background image

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








mov

dx, 4Eh

mov

al, 0 E5h

;GPIO data reg.

out

dx, al

mov

dx, 4Fh

in

al, d x

and

al, not 00000100b out

dx, al

Examp le C code:

//Set GPO62

outportb(0x4E, 0xE5);

//GPIO data re g.

Outportb(0x4F, (inportb(0x4F)|0x4));

//Set Bit[2]

//Clear GPO62

outportb(0x4E, 0xE5);

//GPIO data re g.

Outportb(0x4F, (inportb(0x4F)&0x FB)); //C lear Bit [2]


The foll ow ings are C language source code:

#include "stdio.h"

#include "conio .h"

//Super I/O index acc ess port

#def ine INDEXP

0x4E

#def ine DATAP

0x4F

//Enter super I/O programming mode

#def ine EN TERPRG {

\

outportb(INDEXP, 0x87); \

outportb(INDEXP, 0x87);