User’s Manual
55
Calibrates the response of the D/A converter channel as a linear function using the two conversion points
provided. Values are calculated and placed into global table
_dacCalibS
for analog inputs to be stored
later into simulated EEPROM using the function
anaOutEEWr()
.
Each channel will have a linear constant and a voltage offset.
PARAMETERS
channel
is the output channel 0 or 1: 0 for DA0, 1 for DA1
value1
is the first D/A converter value (0–1023), usually a value of 310 that corresponds to 1.0 V
volts1
is the voltage corresponding to the first D/A converter value (0–3.3 V or V
ref
)
value2
is the second D/A converter value (0–1023), usually a value of 930 that corresponds to 3.0 V
volts2
is the voltage corresponding to the second D/A converter value (0–3.3 V or V
ref
)
RETURN VALUE
0 if successful
-1 if not able to make calibration constants
SEE ALSO
pwmOut, anaOutEERd, anaOutEEWr
Reads the calibration constants, gain, and offset for an output based on its designated channel code
position into global table
_adcCalibS
. Use the sample program
USERBLOCK_INFO.C
in
SAMPLES\USERBLOCK
to get the addresses reserved for the calibration data constants and the
addresses available for use in your program.
NOTE:
This function cannot be run in RAM.
PARAMETERS
channel
is the output channel 0 or 1: 0 for DA0, 1 for DA1
RETURN VALUE
0 if successful
-1 if invalid address or range
SEE ALSO
anaOutEEWr, anaOutCalib
int anaOutCalib(int channel, int value1,
float volts1,int value2, float volts2);
int anaOutEERd(unsigned int channel);
Summary of Contents for Coyote BL2500
Page 1: ...Coyote BL2500 C Programmable Single Board Computer with Ethernet User s Manual 019 0120_M...
Page 6: ...Coyote BL2500...
Page 90: ...84 Coyote BL2500...
Page 104: ...98 Coyote BL2500...
Page 106: ......