Rabbit RabbitCore RCM4200 User Manual page 68

C-programmable analog core module with serial flash and etherne
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
62
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
*
RabbitCore RCM4200

Advertisement

Table of Contents
loading

Table of Contents