>I read many message in this forum, but I don't know how to calibrate my
>values in EEPROM.
>The calibration value are stored at this address : 2027 . I suppose, I
>have to use this function
>ee_wren to write in memory. I do not know how to calculate these values.
You don't need to write the eeprom memory. If you calculate your own
calibration values, your program can store them anywhere.
The normal equation to use is:
real_voltage = (adc_value + offset) * multiplier
You can calculate offset and multiplier by measuring some known voltages
and solving the equations.
Notice that the ADC output is a signed 16 bit number. Zero volts is a
negative number.
If you look on the board schematic (from the TS web site), you see
that the ADC inputs are fed from voltage dividers. You could compute
calibrations from the schematic and the description of the ADC in the
EP9302 documentation.
You can have more accurate answers if you measure the calibration for each
different board. If you do not require great accuracy, the calibration
that you calculate from the circuit schematic may be good enough.
Mark S.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|