|
C8051F352 Datasheet, PDF (45/234 Pages) Silicon Laboratories – 8 k ISP Flash MCU Family | |||
|
◁ |
C8051F350/1/2/3
The offset calibration value adjusts the zero point of the ADCâs transfer function. It is stored as a twoâs
complement, 24-bit number. An offset calibration which results in a full-scale positive (0x7FFFFF) or full-
scale negative (0x800000) result will cause an ADC error condition.
The Offset Calibration results are stored in registers ADC0COH, ADC0COM, and ADC0COL. The weight-
ing of the bits in the offset register (in LSBs) are shown below:
24-bit ADC (C8051F350/1)
ADC0COH
ADC0COM
ADC0COL
MSB 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 LSB
â223 222 221 220 219 218 217 216 215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20
16-bit ADC (C8051F352/3)
ADC0COH
ADC0COM
ADC0COL
MSB 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 LSB
â215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20 2â1 2â2 2â3 2â4 2â5 2â6 2â7 2â8
Figure 5.3. ADC0 Offset Calibration Register Coding
The gain calibration value adjusts the slope of the ADCâs transfer function. The gain calibration regsiter
can range from 0 to 2 â 2â23. A gain calibration which results in either of these extremes will cause an
ADC error condition.
The Gain Calibration results are stored in registers ADC0CGH, ADC0CGM, and ADC0CGL, as follows:
ADC0CGH
ADC0CGM
ADC0CGL
MSB 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 LSB
20 2â1 2â2 2â3 2â4 2â5 2â6 2â7 2â8 2â9 2â10 2â11 2â12 2â13 2â14 2â15 2â16 2â17 2â18 2â19 2â20 2â21 2â22 2â23
Example Decoding for Gain Register setting of 0x940000 (10010100 00000000 00000000b):
Slope Adjustment = 20 + 2â3 + 2â5 = 1.0 + 0.125 + 0.03125 = 1.15625
Figure 5.4. ADC0 Gain Calibration Register Coding
Rev. 1.1
45
|
▷ |