Rabbit OP7100 User Manual Page 71

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 70
User’s Manual 65
4.5.5 A/D Converter Inputs (OP7200 only)
Reads the state of an analog input channel.
PARAMETERS
channel is the analog input channel number (0 to 7) corresponding to AIN0–AIN7:
opmode is the mode of operation:
0 = SE_MODE—single-ended input line
1 = DIFF_MODE—differential input line
2 = mAMP_MODE—4–20 mA input line
gaincode is the gain code of 0 to 7 for both single-ended and differential measurements:
RETURN VALUE
A value corresponding to the voltage on the analog input channel, which will be:
0–2047 for 11-bit A/D conversions (signed 12th bit)
SEE ALSO
anaInVolts, anaInCalib, brdInit, anaInmAmps, anaInDiff
unsigned int anaIn(int channel, int opmode,
int gaincode);
channel
Single-Ended Input Differential Input
0 +AIN0 +AIN0 -AIN1
1 +AIN1
2 +AIN2 +AIN2 -AIN3
3 +AIN3
4 +AIN4 +AIN4 -AIN5
5 +AIN5
6 +AIN6 +AIN6 -AIN7
7 +AIN7
Gain Code Macro Gain
0
GAIN_X1
×1
1
GAIN_X2
×2
2
GAIN_X4
×4
3
GAIN_X5
×5
4
GAIN_X8
×8
5
GAIN_X10
×10
6
GAIN_X16
×16
7
GAIN_X20
×20
Page view 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 171 172

Comments to this Manuals

No comments