User manual

RS232-ADC16/24
7.2 Input registers
Register map : input registers
Address Name Description
0x0000 REG_ADC0_VAL 16-bit value measured at A
0
0x0001 REG_ADC1_VAL 16-bit value measured at A
1
0x0002 REG_ADC2_VAL 16-bit value measured at A
2
0x0003 REG_ADC3_VAL 16-bit value measured at A
3
0x0004 REG_ADC4_VAL 16-bit value measured at A
4
0x0005 REG_ADC5_VAL 16-bit value measured at A
5
0x0006 REG_ADC6_VAL 16-bit value measured at A
6
0x0007 REG_ADC7_VAL 16-bit value measured at A
7
A measurement at A
n
is started each time "Read Input Registers" is called with
address n. If multiple registers are read each affected ADC channel is treated
sequencially. The function blocks until all measures are finished before the
result is send back.
Access to the lower eight bits of an 24-bit conversion is possible by reading
input registers 0x0008 to 0x000F (named REG_ADC
0
_LOW to
REG_ADC
7
_LOW), each containing the low byte of the 24-bit value last
measured at A
0
to A
7
. For RS232-ADC16 modules these registers are always
read 0.
adc_value
24
= (REG_ADC
x
_VAL shl 8) + REG_ADC
x
_LOW
Page 16/22