Table 21 GPIO General Commands

Command

Description

SET GPIO DIR [INOUT] <gpio-num>

Sets GPIO signal to be an input or an output. The setting

GPIO # = {12345678}

only takes effect if the GPIO signal is not selected for

special function operation. <gpio-num> 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]

Advanced Configuration

Silex

Part Number 140-00192-100

Page 51

Page 57
Image 57
Silex technology SX-560 manual Gpio General Commands Description, Show Gpio DIR