Rabbit RabbitCore RCM4200 User Manual page 70

C-programmable analog core module with serial flash and etherne
Table of Contents

Advertisement

float anaInDiff(unsigned int channel, unsigned int gaincode);
DESCRIPTION
Reads the state of differential analog input channels and uses the previously set calibra-
tion constants to convert it to volts.
PARAMETERS
channel
channel
* Accessible on Prototyping Board.
gaincode
64
anaInDiff
the channel number (0 to 7) corresponding to LN0 to LN7.
DIFF
0
+AIN0 -AIN1
1
+AIN1 -AIN1
2
+AIN2 -AIN3
3
+AIN3 -AIN3
4
+AIN4 -AIN5
5
+AIN5 -AIN5
6
+AIN6 -AIN7
7
+AIN7 -AIN7
the gain code of 0 to 7 (applies only to Prototyping Board):
Gain
Gain Code
Multiplier
0
×1
1
×2
2
×4
3
×5
4
×8
5
×10
6
×16
7
×20
Voltage Range
(V)
*
-22.5 to +22.5
-22.5 to +22.5*
-22.5 to +22.5*
Voltage Range
(V)
-22.5 – +22.5
-11.25 – +11.25
-5.6 – +5.6
-4.5 – +4.5
-2.8 – +2.8
-2.25 – +2.25
-1.41 – +1.41
-1.126 – +1.126
RabbitCore RCM4200

Advertisement

Table of Contents
loading

Table of Contents