Cinterion
®
EHS6 AT Command Set
20.6 AT^SCCNT
EHS6_ATC_V03.001
15/12/3
Confidential / Released
Page 483 of 513
0
Activates the Start-Stop counter mode.
After setting this mode, use
and the
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
is mandatory for this mode.
1...65534
Number of pulses to be counted.
Parameter
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 "
" which indicates the parameter
.
1...2147483645
Time (in milliseconds) taken to count the number of pulses specified with
.
Measurement accuracy: The parameter
implies an inaccuracy <5ms
which needs to be taken into account in addition to the measurement start-up
time mentioned above.
20.6.1
Using the Pulse Counter in Limit Counter Mode
This example assumes that a 1 kHz frequency is applied at the GPIO8 line. Limit counter mode is enabled to
request the time the pulse counter needs to count a specified number of pulses.
This example shows how to stop the Limit counter mode and close the pulse counter without waiting for the
" URC.
<mode>
(num)
<limit>
(num)
<time>
(num)
at^sccnt=1,1,1000
Open pulse counter, enable Limit counter mode, request the time
needed to count 1000 pulses.
OK
^SCCNT: 1047
" URC indicates the time taken to count 1000 pulses.
at^sccnt=1,1,2000
Open pulse counter, enable Limit counter mode, request the time
needed to count 2000 pulses.
OK
^SCCNT: 2040
" URC indicates the time taken to count 2000 pulses.
at^sccnt=1,1,10000
Open pulse counter, enable Limit counter mode, request the time
needed to count 10000 pulses.
OK
^SCCNT: 10043
" URC indicates the time taken to count 10000 pulses.
at^sccnt=1,1,20000
Open pulse counter, enable Limit counter mode, request the time
needed to count 20000 pulses.
OK
^SCCNT: 20040
" URC indicates the time taken to count 20000 pulses.
at^sccnt=0,0
Stop and close the pulse counter immediately, without "
" URC
being indicated.
OK