Table 22 GPIO Trigger Commands

 

Command

 

Description

 

 

 

 

 

 

SET GPIO TRIGger [1 0 DIS] <gpio-num>

Sets a single control bit. The setting only takes

 

 

 

effect if the GPIO signal is not selected for a special

 

 

 

function operation and is configured to be an input.

 

 

 

The parameter after the TRIG keyword controls the

 

 

 

operation as follows:

 

 

 

Enable trigger if the specified GPIO signal

 

 

 

transitions from a 0 to a 1.

 

 

 

1

Enable trigger if the specified GPIO

 

 

 

 

transitions from a 1 to a 0

 

 

 

0

Enable trigger if the specified GPIO

 

 

 

 

transitions from a 0 to a 1

 

 

 

DIS

Disable all triggers for the specified GPIO

 

 

 

 

signal.

 

 

 

<gpio-num> must be in the range 1-8.

 

 

 

NOTE: Setting a trigger condition resets all

 

 

 

undefined trigger strings for triggers that are

 

 

 

enabled to the default string value.

 

 

 

NOTE: The trigger configuration is not changed by

 

 

 

a configuration reset to default.

 

 

 

 

 

 

SHOW GPIO TRIGger

Shows current GPIO trigger conditions. Note that a

 

 

 

GPIO may be enabled for two trigger conditions,

 

 

 

one for a 0 to 1 transition, and one for a 1 to 0

 

 

 

transition. If a GPIO is set for its special function,

 

 

 

no trigger is possible on that pin.

 

 

 

 

 

 

 

Example:

 

 

 

 

Local> set gpio trig 1 1

 

 

 

 

Local> set gpio trig 0 2

 

 

 

 

Local> show gpio trig

 

 

 

 

GPIO Trigger Conditions

 

 

 

 

-----------------------

 

 

 

 

trig if GPIO #1 is 1 <Trig #1>

 

 

 

trig if GPIO #2 is 0 <Trig #2>

 

 

 

GPIO #2 is set for OUTPUT

 

 

 

 

GPIO #3 is set for OUTPUT

 

 

 

 

 

 

 

 

 

 

 

 

 

Page 54

Silex

Part Number 140-00192-100

Advanced Configuration

Page 60
Image 60
Silex technology SX-560 manual Gpio Trigger Commands Description, Dis