beautypg.com

Pch 7591 – Acnodes PCH 7591 User Manual

Page 67

background image

PCH 7591

15 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







S EL ET DE V(9)

//R ead GP IO Value

outportb(I NDE X P, 0x E5); cGP 2 =

inpo rtb(D ATAP ); cGP 2 = cGP 2 &

0xF ;

//W rite GP IO Port6

i nt W riteGP 6(unsigned char cGP 6) {

//Start the super I/O chip program m ing

E NT E RP RG

//S elect the lo gi cal devic e 8, GP6

S EL ET DE V(8)

//W rite GP1 va lue

W RIT E RE G(0xE5, c GP6)

//E xit the s uper I/O chip program m ing

E XIT P RG

return 0;

}

i nt m ain() {

uns igned char cGP ;

//Ini tialize the GP IO port

InitG P2(); InitGP 6();

//R ead GP IO Port 2

cG P = R eadGP 2();

printf(" \nR ead G PIO Port 2 Stat us: % X", c GP);