Appendix b: gpi/o programming guide – NEXCOM NDiS 166 User Manual
Page 98

Copyright © 2011 NEXCOM International Co., Ltd. All Rights Reserved.
85
NDiS 166 User Manual
Appendix B: GPI/O Programming Guide
Appendix B: GPI/O Programming Guide
This appendix provides definitions for the GPI/O pins in NDiS 166. GPI/O
(General Purpose Input/Output) pins are provided for custom system
design. The pin programmed as input mode (GPI) or output mode (GPO)
depends on the configuration.
GPIO Configuration
Address: A02
DATA
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
GPIO mapping
GPI4
GPI3
GPI2
GPI1
X
X
X
GPO4
Address: A00
DATA
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
10
GPIO
mapping
X
X
X
GPO3
X
GPO2
GPO1
X
GP
I 3
Example:
Output data (1010) through GPO
Setp1: At Debug mode
Setp2: Set Data at address A02 and A00
C:\debug
-o A02 F1
-o A00 ED
Read data from GPI
Setp1: At Debug mode
Setp2: Read Data at A02 (Input data is 1010)
C:\debug
-i A02
-AF