Gpio interface, Configurable pins, Features – Lantronix XPort User Manual

Page 49: Gpio interface 5-1, Configurable pins -1, Features: -1

Advertising
background image

5

5

:

:

G

G

P

P

I

I

O

O

I

I

n

n

t

t

e

e

r

r

f

f

a

a

c

c

e

e

This chapter includes the following topics:

Topic

Page

Configurable Pins

5-1

Control Protocol

5-2

Examples 5-5

Configurable Pins

The XPort has three pins (CP1-3) that you can configure for General Purpose I/O
(GPIO).

Note:

You can also configure the pins for serial port control lines, such as

CTS, RTS, DTR, and DCD, and diagnostic outputs to LEDs, using
DeviceInstaller.

You can use these GPIO pins to control devices such as relays, servers, lights,
monitor switches, sensors, and even processes such as data transfer.

You can set the functions for the three pins independently and in any combination.
The initial directions (input/output) and active levels (active low or high) at boot up
can also be configured through 77FE, for example, by using DeviceInstaller.

This chapter describes how the directions, active levels, and states can be
dynamically controlled and probed through special port 77F0.

Features:

TCP and UDP can be used.

The protocol supports up to 32 GPIO for future products.

Function configuration can be retrieved.

Input or output selection can be retrieved and controlled.

Active low or high selection can be retrieved and controlled.

Active or inactive selection can be retrieved and controlled.

77F0 can be disabled.

Every change of state (active/inactive) requires a command over TCP or UDP, and
thus is not very fast. If you use this port for data transfer, the throughput is low,
usually up to 1Kbps.

XPort™ User Guide

5-1

Advertising