![background image](http://html2.mh-extra.com/html/rabbit/rabbitcore/rabbitcore_user-manual_3112756053.webp)
User’s Manual
47
Reads the state of a single-ended analog input channel and uses the calibration constants previously set
using
anaInCalib
to convert it to volts.
PARAMETERS
channel
is the channel number (0–7)
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 anaInVolts(unsigned int channel,
unsigned int gaincode);
Channel Code
Single-Ended
Input Lines
*
* Negative input is ground.
Voltage Range
†
(V)
† Applies to RCM3700 Prototyping Board.
0
+AIN0
0–20
1
+AIN1
0–20
2
+AIN2
0–20
3
+AIN3
0–20
4
+AIN4
0–20
5
+AIN5
0–20
6
+AIN6
0–20
7
+AIN7
0–2
‡
‡ Used for thermistor in sample program.
Gain Code
Multiplier
Voltage Range
*
(V)
* Applies to RCM3700 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 6: ...RabbitCore RCM3750...
Page 40: ...34 RabbitCore RCM3750...
Page 64: ...58 RabbitCore RCM3750...
Page 126: ...120 RabbitCore RCM3750...
Page 162: ...156 RabbitCore RCM3750...
Page 172: ......