Fpc 7615, 15 inch atom fanless panel pc – Acnodes FPC 7615 User Manual

Page 54

Advertising
background image

FPC 7615

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







outportb(0 x4E, 0x30); //Logic device ac tivation contro l

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

//S et bit[2] to enable GP IO Por t6 if LDN= 8

Configure GPIO register

E xample x86 as sembly code:

m ov dx, 4Eh

m ov al, 0E 6h ;GP IO inversion reg.

out dx , al

m ov dx, 4Fh

m ov al, 000h ;0

– norm al, 1 - inverted

out dx , al

m ov dx, 4Eh

m ov al, 0E 4h ;GP IO I/O selec tion reg.

out dx , al

m ov dx, 4Fh

m ov al, 0FFh ;0

– Output, 1 – Input

;or m ov al, 0F0h to s et ou tput

out dx , al

E xample C c ode:

outportb(0 x4E, 0xE 6); //GP IO I/O selec tion reg.

outportb(0 x4F, 0x0); //0

– nor mal, 1 – inv erted

outportb(0 x4E, 0xE4); //GP IO inversion reg.

outportb(0 x4F, 0xFF); //0

– Output, 1 - Input

or

outportb(0 x4E, 0xE 4); //GP IO invers ion reg.

outportb(0 x4F, 0xF0); //0

– Output, 1 – Input

Read GPIO value

E xample x86 as sembly code:

m ov dx, 4Eh

m ov al, 0E 5h ;GP IO data reg.

out dx , al

m ov dx, 4Fh

in al, dx ;Bit[3::0] = GPI[3::0] value

E xample C c ode:

outportb(0 x4E, 0xE 5); //GP IO data reg.

Advertising