Rabbit Core RCM3700 User Manual page 50

C-programmable core module with ethernet, serial flash, and enhanced software
Hide thumbs Also See for Core RCM3700:
Table of Contents

Advertisement

int anaInCalib(int channel, int opmode,
int gaincode, int value1, float volts1,
int value2, float volts2);
Calibrates the response of the desired A/D converter channel as a linear function using the two conver-
sion points provided. Four values are calculated and placed into global tables to be later stored into sim-
ulated EEPROM using the function anaInEEWr(). Each channel will have a linear constant and a
voltage offset.
PARAMETERS
channel is the analog input 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—milliamp input
channel
0
1
2
3
4
5
6
7
* Not accessible on RCM3700 Prototyping Board.
gaincode is the gain code of 0 to 7
RabbitCore RCM3700 User's Manual
SINGLE
+AIN0
+AIN1
+AIN2
+AIN3
+AIN4
+AIN5
+AIN6
+AIN7
Gain Code
Multiplier
0
x1
1
x2
2
x4
3
x5
4
x8
5
x10
6
x16
7
x20
* Applies to RCM3700 Prototyping Board.
DIFF
+AIN0 -AIN1
+AIN1 -AIN0*
+AIN2 -AIN3
+AIN3 -AIN2*
+AIN4 -AIN5
+AIN5 -AIN4*
+AIN6 -AIN7*
+AIN7 -AIN6*
*
Voltage Range
(V)
0–20
0–10
0–5
0–4
0–2.5
0–2
0–1.25
0–1
mAMP
*
+AIN0
+AIN1*
+AIN2*
+AIN3
+AIN4
+AIN5
+AIN6
+AIN7*
48

Advertisement

Table of Contents
loading

Table of Contents