beautypg.com

Silex technology Embedded Intelligent Module SX-560 User Manual

Page 57

background image

Advanced Configuration

Silex

Page 51

Part Number 140-00192-100

Table 21 GPIO General Commands

Command

Description

SET GPIO DIR [IN|OUT]

GPIO # = {1|2|3|4|5|6|7|8}

Sets GPIO signal to be an input or an output. The setting
only takes effect if the GPIO signal is not selected for
special function operation. must be in the
range 1-8.

NOTE: The direction bit configuration is not changed by a
configuration reset to default.

SHOW GPIO DIR

Shows current setting of the GPIO direction configuration.

Example:

Local> show gpio dir

GPIO Direction
--------------
1 [OUT]
2 [IN]
3 [IN]
4 [IN]
5 [SPCL]
6 [SPCL]
7 [SPCL]
8 [SPCL]

Local> set gpio dir in 1

Local> set gpio dir out 2

Local> show gpio dir


GPIO Direction
--------------
1 [IN]
2 [OUT]
3 [IN]
4 [IN]
5 [SPCL]
6 [SPCL]
7 [SPCL]
8 [SPCL]