Rabbit Core RCM3700 User Manual page 52

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

float anaInVolts(unsigned int channel,
unsigned int gaincode);
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
RabbitCore RCM3700 User's Manual
Single-Ended
Channel Code
Input Lines
0
+AIN0
1
+AIN1
2
+AIN2
3
+AIN3
4
+AIN4
5
+AIN5
6
+AIN6
7
+AIN7
* Negative input is ground.
† Applies to RCM3700 Prototyping Board.
‡ Used for thermistor in sample program.
Gain Code
Multiplier
0
x1
1
x2
2
x4
3
x5
4
x8
5
x10
6
x16
7
x20
* Applies to RCM3700 Prototyping Board.
Voltage Range
*
(V)
0–20
0–20
0–20
0–20
0–20
0–20
0–20
0–2
*
Voltage Range
(V)
0–20
0–10
0–5
0–4
0–2.5
0–2
0–1.25
0–1
50

Advertisement

Table of Contents
loading

Table of Contents