X90 mobile modules
X90 mobile system User's manual V 1.20 - Translation of the original manual
163
5.4.1.5.5.6 AnalogInputControlByte
Name:
AnalogInputControlByte01
The control register for
"AnalogInput" on page 161
is only functional if the respective
"SamplesAnalogInput" on
page 165
configuration register is greater than 0.
The configuration in
"AnalogInputConfig" on page 162
for the respective channel determines whether the respective
bit is an enable or trigger bit.
Data type
Values
UINT
See the bit structure.
Bit structure:
Bit
Description
Value
Information
0
AnalogInputControl01
x
See
Function of the bit
...
...
3
AnalogInputControl04
x
See
Function of the bit
4 - 15
Reserved
0
Function of the bit
Function in continuous mode:
Bit to start the continuous characteristic value calculation of
"AnalogInput"
.
0 =
1 =
Calculation disabled
Continuous calculation of characteristic values
Function in single-shot mode:
Bit to start a new characteristic value calculation of
"AnalogInput"
.
0, 1 Every edge starts a new characteristic value calculation provided the previous one is already complet-
ed.
Characteristic value calculation
The characteristic value configured in
"AnalogInputConfig" on page 162
for the respective channel is calculated.
The number of samples configured in
"SamplesAnalogInput" on page 165
is used. The calculated value is dis-
played in
"AnalogInput" on page 161
with the scaling of the respective channel configured in
"AnalogInputScale"
on page 164
. The value of AnalogInputToggleBit01-04 changes each time a new calculation takes place.
5.4.1.5.5.7 AnalogInputSamples
Name:
AnalogInputSamples01 to AnalogInputSamples04
If bit 15 of the respective
"SamplesAnalogInput" on page 165
register is 1, then this register cyclically defines
the number of samples used to calculate characteristic values.
Information:
If the register is changed while a measurement is running, then the current measurement is discard-
ed (AnalogInputToggleBit0X does not change). This is especially important to remember when using
"continuous mode with enable" on page 161
.
Data type
Values
Information
0
Invalid
1 to 8191
Characteristic value calculation active for the respective channel in the corresponding analog
input
UINT
>8191
Invalid
The time between 2 samples depends on register
"MaxFrequencyRaw" on page 186
:
Maximum frequency
Sampling time (time between 2 samples)
10000 Hz
38.79 µs
5000 Hz
77.58 µs
2000 Hz
193.94 µs
1000 Hz
387.88 µs
500 Hz
775.76 µs
200 Hz
1939.39 µs