| Electronic Components Datasheet Search |
|
MAC7200 Datasheet(PDF) 859 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
MAC7200 Datasheet(HTML) 859 Page - Freescale Semiconductor, Inc |
|
859 / 976 page ![]() Initialization/Application Information MAC7200 Microcontroller Family Reference Manual, Rev. 2 Freescale Semiconductor 781 33.12.2.3.3 Determine Gain Constant GCC / Determine Offset Constant OCC The ideal transfer curve put into a coordinate system is linear, starting in the origin with a slope of 1. The real device behavior can slightly differ. As the ATD is very linear the only two transfer curve factors that can vary are the slope (gain) and the origin (offset). Both values must be determined and adjusted. To determine them two measurements are required. The first measurement (RAW75) is done at 75% of the maximum voltage (See 33.12.2.3.1 Sample Special Channel 75% x (VRH - VRL)). The second one (RAW25) is done at 25% of the maximum voltage (See 33.12.2.3.2 Sample Special Channel 25% x (VRH - VRL)). Both values are compared with the expected values (EXP75 and EXP25): Eqn. 33-6 Eqn. 33-7 The expected values are: Eqn. 33-8 Eqn. 33-9 Now the gain can be calculated: Eqn. 33-10 The offset can be calculated either like this: Eqn. 33-11 or like this: Eqn. 33-12 The ‘0.5’ in Equation 33-11 and Equation 33-12 moves the ATD transfer curve down by half an LSB and is therefore reducing the Total Unadjusted Error (TUE) by half an LSB. The Gain Calibration Constant can be calculated like this: Eqn. 33-13 For details about GCC, see Section 33.10.2.5, “ATD Calibration Register (ATDCAL). For offset values >= 0 the Offset Calibration Constant can be calculated like this: Eqn. 33-14 For offset values < 0 the Offset Calibration Constant can be calculated like this: Eqn. 33-15 EXP 75 Gain RAW 75 × Offset 0.5 ++ = EXP 25 Gain RAW 25 Offset 0.5 ++ × = EXP 75 0.75 = 2 12 × 0.75 4096 × = 3072 = EXP 25 0.25 = 2 12 × 0.25 4096 × = 1024 = Gain EXP 75 EXP 25 – RAW 75 RAW 25 – --------------------------------------------- = 3072 1024 – RAW 75 RAW 25 – --------------------------------------------- 2048 RAW 75 RAW 25 – --------------------------------------------- = = Offset EXP 75 Gain RAW 75 × 0.5 – 3072 Gain RAW 75 × – 0.5 – = – = Offset EXP 25 Gain RAW 25 0.5 – × 1024 Gain RAW 25 0.5 – × – = – = GCC Gain 16384 × = OCC Offset 4 × = OCC Offset 4 × 16384 + = |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |