TPMC533 User Manual Issue 1.0.1
Page 91 of 107
6 Correction Data
In the Correction Data ROM, there is an individual Offset Correction Value and an individual Gain Correction
Value for each ADC Channel and for each DAC Channel at each voltage range.
The formula that is applied by the TPMC533 when ADC Data or DAC Data is corrected with the
corresponding correction values stored in the Correction Data ROM is:
Data_Corrected
=
Data
4
262144
1
CORR
CORR
Offset
Gain
−
−
⋅
•
Data
is the digital value that would be used if the ADC Channels and DAC Channels were ideal
•
Data_Corrected
is the corrected digital value that has to be used with the real ADC Channels and
DAC Channels
•
Gain
CORR
and
Offset
CORR
are the correction values from the Correction Data ROM
The correction values are stored as two’s complement 16bit wide values in the range from –32768 to
+32767. For higher accuracy they are scaled to ¼ LSB. No correction is performed for
Gain
CORR
= 0 and
Offset
CORR
= 0.
To enable data correction performed by the TPMC533 firmware, the software must read the corresponding
gain and offset correction values for the desired ADC/DAC Channel and voltage range from the Correction
Data ROM and write the values to the corresponding ADC Correction Register or DAC Correction Register.