beautypg.com

Appendix b: gpi/o programming guide, Gpio configuration – NEXCOM NDiS 167 User Manual

Page 74

background image

Copyright © 2012 NEXCOM International Co., Ltd. All Rights Reserved.

60

NDiS 167 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 167. 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.

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

GPIO Configuration

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