root int anaInEERd(unsigned int channel,
unsigned int opmode, unsigned int gaincode);
Reads the calibration constants, gain, and offset for an input based on their designated position in the
simulated EEPROM area of the flash memory, and places them into global tables _adcCalibS,
_adcCalibD, and _adcCalibM for analog inputs. The constants are stored in the top 2K of the user
block in a reserved memory area. Depending on the flash size, the following macros can be used to
identify the starting address for these locations.
ADC_CALIB_ADDRS, address start of single-ended analog input channels
ADC_CALIB_ADDRD, address start of differential analog input channels
ADC_CALIB_ADDRM, address start of milliamp analog input channels
NOTE: This function cannot be run in RAM.
PARAMETER
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 line
DIFF—differential input line
mAMP—milliamp input line
channel
0
1
2
3
4
5
6
7
ALLCHAN
* Not accessible on Prototyping Board.
User's Manual
SINGLE
DIFF
+AIN0
+AIN0 -AIN1
+AIN1
+AIN1 -AIN0*
+AIN2
+AIN2 -AIN3
+AIN3
+AIN3 -AIN2*
+AIN4
+AIN4 -AIN5
+AIN5
+AIN5 -AIN4*
+AIN6
+AIN6 -AIN7*
+AIN7
+AIN7 -AIN6*
read all channels for selected opmode
mAMP
*
+AIN0
+AIN1*
+AIN2*
+AIN3
+AIN4
+AIN5
+AIN6
+AIN7*
51
Need help?
Do you have a question about the RabbitCore RCM3400 and is the answer not in the manual?