Pch 7791, Chapter 4, Examples of gpio programming – Acnodes PCH 7791 User Manual
Page 60: 3 configure gpio register sequence, 4 read/write gpio sequence, 5 software programming example
PCH 7791
17 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
Chapter 4
Examples of GPIO Programming
4.1 SuperIO Model: Winbond W83627UHG
GPIO OUT use GP 60~63
GPIO IN use GP 20~23
4.2 W83627UHG Access index port: 4Eh/4Fh
Index Address Po rt: 4Eh
Index Data Port: 4Fh
4.3 Configure GPIO register sequence
1 . Enter the extende d function mode
2 . Select logic device number 8
3 . Activate the logic device GPIO Port 6
4 . Configure GPIO Port 6 register
5 . Select logic device number 9
6 . Activate the logic device GPIO Port 2
7 . Configure GPIO Port 2 register
8 . Exit the e xtended fun ction mode
4.4 Read/write GPIO sequence
1 . Enter the extende d function mode
2 . Select logic device number
3 . Read/write GPIO register value
4 . Exit the e xtended fun ction mode
4.5 Software programming example
Enter the extended function mode
Writing 87h to i nd ex addres s port twice wi ll enter the extended func tion mode.