![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm4100/rabbitcore-rcm4100_user-manual_3119422057.webp)
User’s Manual
53
anaIn
int anaIn(unsigned int channel, int opmode, int gaincode);
DESCRIPTION
Reads the value of an analog input channel using the Direct Mode method of addressing
the A/D converter. Note that it takes about 1 second to ensure an internal capacitor on
the A/D converter is charged when the function is called the first time.
PARAMETERS
channel
the channel number (0 to 7) corresponding to LN0 to LN7.
opmode
the mode of operation:
SINGLE
—single-ended input
DIFF
—differential input
mAMP
—4–20 mA input
gaincode
the gain code of 0 to 7 (applies only to Prototyping Board):
channel
SINGLE
DIFF
mAMP
0
+AIN0
+AIN0 -AIN1
+AIN0
*
* Not accessible on Prototyping Board.
1
+AIN1
+AIN1 -AIN0*
+AIN1*
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*
+AIN7*
Gain Code
Gain
Multiplier
Voltage Range
*
(V)
* Applies to Prototyping Board.
0
×1
0–22.5
1
×2
0–11.25
2
×4
0–5.6
3
×5
0–4.5
4
×8
0–2.8
5
×10
0–2.25
6
×16
0–1.41
7
×20
0–1.126
Содержание RabbitCore RCM4100
Страница 1: ...RabbitCore RCM4100 C Programmable Core Module User s Manual 019 0153 090508 G...
Страница 18: ...14 RabbitCore RCM4100...
Страница 102: ...98 RabbitCore RCM4100...
Страница 106: ...102 RabbitCore RCM4100...
Страница 110: ...106 RabbitCore RCM4100...
Страница 112: ......