Rabbit RabbitCore RCM4100 User Manual page 61

C-programmable core module
Table of Contents

Advertisement

float anaInVolts(unsigned int channel, unsigned int gaincode);
DESCRIPTION
Reads the state of a single-ended analog input channel and uses the previously set
calibration constants to convert it to volts.
PARAMETERS
channel
gaincode
User's Manual
anaInVolts
the channel number (0 to 7) corresponding to LN0 to LN7.
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 Prototyping Board.
‡ Used for thermistor in sample program.
the gain code of 0 to 7 (applies only to Prototyping Board):
Gain
Gain Code
Multiplier
0
1
2
3
4
5
×10
6
×16
7
×20
* Applies to Prototyping Board.
Voltage Range
*
(V)
0–22.5
0–22.5
0–22.5
0–22.5
0–22.5
0–22.5
0–22.5
0–2
Voltage Range
(V)
×1
0–22.5
×2
0–11.25
×4
0–5.6
×5
0–4.5
×8
0–2.8
0–2.25
0–1.41
0–1.126
*
57

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RabbitCore RCM4100 and is the answer not in the manual?

Questions and answers

Table of Contents