Rabbit OP7100 User Manual Page 79

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 78
User’s Manual 73
Writes the calibration constants, gain, and offset for an input based on its designated channel code
position from global table
_adcCalib. The constants are stored in the top 1K of the reserved user
block memory area. Use the sample program
USERBLOCKINFOR.C in SAMPLES\OP7200 to get
the addresses reserved for the calibration data constants and the addresses available for use by your
program.
NOTE: This function cannot be run in RAM.
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:
int anaInEEWr(unsigned int channel, int opmode,
unsigned 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
-1
ALL_CHANNELS ALL_CHANNELS
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 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 171 172

Comments to this Manuals

No comments