![background image](http://html2.mh-extra.com/html/rabbit/rabbitcore/rabbitcore_user-manual_3112756049.webp)
User’s Manual
43
Reads the value of an analog input channel using the direct method of addressing the ADS7870 A/D
converter. The A/D converter is enabled the first time this function is called—this will take approxi-
mately 1 second to ensure that the A/D converter capacitor is fully charged.
PARAMETERS
channel
is the channel number (0 to 7) corresponding to ADC_IN0 to ADC_IN7
opmode
is the mode of operation:
SINGLE
—single-ended input
DIFF
—differential input
mAMP
—4–20 mA input
gaincode
is the gain code of 0 to 7
unsigned int anaIn(unsigned int channel,
int opmode, int gaincode);
channel
SINGLE
DIFF
mAMP
0
+AIN0
+AIN0 -AIN1
+AIN0
*
* Not accessible on RCM3700 Prototyping Board.
1
+AIN1
+AIN1 -AIN0*
2
+AIN2
+AIN2 -AIN3
+AIN2*
3
+AIN3
+AIN3 -AIN2*
+AIN3
4
+AIN4
+AIN4 -AIN5
+AIN4
5
+AIN5
+AIN5 -AIN4*
+AIN5
6
+AIN6
+AIN6 -AIN7*
+AIN6
7
+AIN7
+AIN7 -AIN6*
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: ......