> 20.2 | AT^SCPIN Pin Configuration

> The AT^SCPIN write command serves to add (or remove) and configure pins.
> Syntax

> Test Command AT^SCPIN=?
> Response(s)
> ^SCPIN:(list of supported <mode>s), (list of supported <pin_id>s), (list of supported <direction>s), (list of supported <startValue>s)
> OK

> Write Command AT^SCPIN=<mode>, <pin_id>, <direction>[, <startValue>]
> Response(s)
> OK
> ERROR
> +CME ERROR: <err>

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> SIEMENS |  | - |  | + | + | + | + | + | + |  |  | - | + | -

> Parameter Description

> <mode>(num)

> 0
> Close pin
> 1
> Open pin

> <pin_id>(num)

> Pin identifier
> 0
> GPIO1
> 1
> GPIO2
> 2
> GPIO3
> 3
> GPIO4
> 4
> GPIO5
> 5
> GPIO6
> 6
> GPIO7
> 7
> GPIO8
> 8
> GPIO9
> 9
> GPIO10 - The GPIO10 pin can be used either as GPIO or as pulse counter. If configured as GPIO, the pulse counter option cannot be enabled. Vice versa, if configured as pulse counter the GPIO option is not available. See AT^SCCNT and AT^SSCNT for further details on the pulse counter.

> <direction>(num)

> Parameter <direction> is mandatory when opening a pin, but can be omitted when closing a pin
> 0
> Input
> 1
> Output

> <startValue>(num)

> Can be set only for outputs.
> [0]
> Low
> 1
> High
> Notes

> • | For closing a pin with the write command (<mode>=0), the parameter <direction> is not needed.

> • | Before changing the configuration of a pin be sure to close the pin.