User’s Manual
57
Reads the calibration constants, gain, and offset for an input based on their designated position in the
flash memory, and places them into global tables
_adcCalibS
,
_adcCalibD
, and
_adcCalibM
for
analog inputs. 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 LN0_IN to LN7_IN.
opmode
is the mode of operation:
SINGLE
—single-ended input line
DIFF
—differential input line
mAMP
—milliamp input line
root int anaInEERd(unsigned int channel,
unsigned int opmode, unsigned int gaincode);
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*
ALLCHAN
read all channels for selected
opmode
Содержание RabbitCore RCM4000
Страница 1: ...RabbitCore RCM4000 C Programmable Analog Core Module with Ethernet User s Manual 019 0157 060501 A...
Страница 6: ...RabbitCore RCM4100...
Страница 12: ...6 RabbitCore RCM4000...
Страница 20: ...14 RabbitCore RCM4000...
Страница 46: ...40 RabbitCore RCM4000...
Страница 68: ...62 RabbitCore RCM4000...
Страница 82: ...76 RabbitCore RCM4000...
Страница 96: ...90 RabbitCore RCM4000...
Страница 114: ...108 RabbitCore RCM4000...
Страница 118: ...112 RabbitCore RCM4000...
Страница 122: ...116 RabbitCore RCM4000...
Страница 124: ......