> 20.8 | AT^SCCNT Configure Pulse Counter

> The AT^SCCNT write command serves to configure the GPIO10 pin as pulse counter. The pulse counter is designed to measure signals from 0 to 1000 pulses per second.
> Remember that if the GPIO10 line is configured as GPIO (see AT^SCPIN) any attempt to activate the pulse counter will be rejected. Vice versa, if the pulse counter is opened the GPIO10 line cannot be configured as GPIO.
> See also [2] for further detail on the pulse counter.
> Syntax

> Test Command AT^SCCNT=?
> Response(s)
> ^SCCNT:(list of supported <action>s), (list of supported <mode>s), (list of supported <limit>s)
> OK

> Read Command AT^SCCNT?
> Response(s)
> ^SCCNT: <action>, <mode>[, <limit>]
> OK
> ERROR
> +CME ERROR: <err>

> Write Command AT^SCCNT=<action>, <mode>[, <limit>]
> Response(s)
> OK
> ERROR
> +CME ERROR: <err>

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

> Unsolicited Result Code
> ^SCCNT: <time>
> The URC applies only to the Limit counter mode set with parameter <mode>=1. It is delivered once the pulse counter has completed counting the number of pulses requested with parameter <limit>.
> Parameter Description

> <action>(num)

> 0
> Close pulse counter
> 1
> Open pulse counter

> <mode>(num)

> 0
> Activates the Start-Stop counter mode.
> After setting this mode, use AT^SSCNT and the <action> parameter to start or stop the pulse counter or to read out the measured pulses.
> 1
> Activates the Limit counter mode and immediately starts the pulse counter. Parameter <limit> is mandatory for this mode.

> <limit>(num)

> 1...65534
> Number of pulses to be counted.
> Parameter <limit> applies only to the Limit counter mode and is mandatory for this mode. Once the given number of pulses is reached, the ME sends one single URC "^SCCNT" which indicates the parameter <time>.

> <time>(num)

> 1...4294967295
> Time (in milliseconds) taken to count the number of pulses specified with <limit>.
> Note

> • | Measurement accuracy: In Limit counter mode, the parameter <time> implies an inaccuracy <5ms.