User’s Manual
45
Reads the state of differential analog input channels and uses the calibration constants previously set
using
anaInCalib
to convert it to volts.
PARAMETERS
channel
is the analog input channel number (0 to 7) corresponding to ADC_IN0 to ADC_IN7
gaincode
is the gain code of 0 to 7
RETURN VALUE
A voltage value corresponding to the voltage on the analog input channel.
ADOVERFLOW
(defined macro = -4096) if overflow or out of range.
SEE ALSO
anaInCalib, anaIn, anaInmAmps, brdInit
float anaInDiff(unsigned int channel,
unsigned int gaincode);
channel
DIFF
Voltage Range
(V)
0
+AIN0 -AIN1
-20 to +20
*
* Applies to RCM3600 Prototyping Board.
1
+AIN1 -AIN0
—
2
+AIN2 -AIN3
-20 to +20*
3
+AIN3 -AIN2
—
4
+AIN4 -AIN5
-20 to +20*
5
+AIN5 -AIN4
—
6
+AIN6 -AIN7
—
7
+AIN7 -AIN6
—
Gain Code
Multiplier
Voltage Range
*
(V)
* Applies to RCM3600 Prototyping Board.
0
x1
0–20
1
x2
0–10
2
x4
0–5
3
x5
0–4
4
x8
0–2.5
5
x10
0–2
6
x16
0–1.25
7
x20
0–1
Summary of Contents for RabbitCore
Page 1: ...RabbitCore RCM3600 C Programmable Core Module User s Manual 019 0135 050630 C ...
Page 6: ...RabbitCore RCM3600 ...
Page 12: ...6 RabbitCore RCM3600 ...
Page 92: ...86 RabbitCore RCM3600 ...
Page 128: ...122 RabbitCore RCM3600 ...
Page 132: ...126 RabbitCore RCM3600 ...
Page 136: ...130 RabbitCore RCM3600 ...
Page 138: ......