stored in flash memory after an initial calibration and recovered prior to the first ADC
conversion. This method should reduce the calibration latency to 20 register store
operations on all subsequent power, reset, or Low Power Stop mode recoveries.
34.4.8 User defined offset function
The ADC offset correction register (OFS) contains the user selected or calibration
generated offset error correction value. This register is a 2’s complement, left justified.
The value in the offset correction register (OFS) is subtracted from the conversion and
the result is transferred into the result registers (Rn). If the result is above the maximum
or below the minimum result value, it is forced to the appropriate limit for the current
mode of operation.
The formatting of the ADC offset correction register is different from the data result
register (Rn) to preserve the resolution of the calibration value regardless of the
conversion mode selected. Lower order bits are ignored in lower resolution modes. For
example, in 8-bit single-ended mode, the bits OFS[14:7] are subtracted from D[7:0]; bit
OFS[15] indicates the sign (negative numbers are effectively added to the result) and bits
OFS[6:0] are ignored. The same bits are used in 9-bit differential mode since bit OFS[15]
indicates the sign bit, which maps to bit D[8]. For 16-bit differential mode, all bits
OFS[15:0] are directly subtracted from the conversion result data D[15:0]. In 16-bit
single-ended mode, there is no bit in the offset correction register corresponding to the
least significant result bit D[0], so odd values (-1 or +1, and so on) cannot be subtracted
from the result.
OFS is automatically set according to calibration requirements once the self calibration
sequence is done (CAL is cleared). The user may write to OFS to override the calibration
result if desired. If the offset correction register is written by the user to a value that is
different from the calibration value, the ADC error specifications may not be met. It is
recommended that the value generated by the calibration function be stored in memory
before overwriting with a user specified value.
Note
There is an effective limit to the values of offset that can be set
by the user. If the magnitude of the offset is too great, the
results of the conversions will cap off at the limits.
The offset calibration function may be employed by the user to remove application
offsets or DC bias values. The offset correction register, OFS may be written with a
number in 2's complement format and this offset will be subtracted from the result (or
hardware averaged value). To add an offset, store the negative offset in 2's complement
Chapter 34 Analog-to-Digital Converter (ADC)
K53 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
851
Содержание K53 Series
Страница 2: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 2 Freescale Semiconductor Inc...
Страница 58: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 58 Freescale Semiconductor Inc...
Страница 70: ...Orderable part numbers K53 Sub Family Reference Manual Rev 6 Nov 2011 70 Freescale Semiconductor Inc...
Страница 168: ...Human machine interfaces HMI K53 Sub Family Reference Manual Rev 6 Nov 2011 168 Freescale Semiconductor Inc...
Страница 206: ...Boot K53 Sub Family Reference Manual Rev 6 Nov 2011 206 Freescale Semiconductor Inc...
Страница 218: ...Security Interactions with other Modules K53 Sub Family Reference Manual Rev 6 Nov 2011 218 Freescale Semiconductor Inc...
Страница 342: ...PMC Memory Map Register Definition K53 Sub Family Reference Manual Rev 6 Nov 2011 342 Freescale Semiconductor Inc...
Страница 362: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 362 Freescale Semiconductor Inc...
Страница 384: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 384 Freescale Semiconductor Inc...
Страница 406: ...Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 406 Freescale Semiconductor Inc...
Страница 424: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 424 Freescale Semiconductor Inc...
Страница 514: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 514 Freescale Semiconductor Inc...
Страница 524: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 524 Freescale Semiconductor Inc...
Страница 546: ...Restrictions on Watchdog Operation K53 Sub Family Reference Manual Rev 6 Nov 2011 546 Freescale Semiconductor Inc...
Страница 594: ...Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 594 Freescale Semiconductor Inc...
Страница 628: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 628 Freescale Semiconductor Inc...
Страница 702: ...Flash Operation in Low Power Modes K53 Sub Family Reference Manual Rev 6 Nov 2011 702 Freescale Semiconductor Inc...
Страница 772: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 772 Freescale Semiconductor Inc...
Страница 808: ...Initialization Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 808 Freescale Semiconductor Inc...
Страница 864: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 864 Freescale Semiconductor Inc...
Страница 894: ...DAC Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 894 Freescale Semiconductor Inc...
Страница 908: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 908 Freescale Semiconductor Inc...
Страница 920: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 920 Freescale Semiconductor Inc...
Страница 926: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 926 Freescale Semiconductor Inc...
Страница 1092: ...FTM Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 1092 Freescale Semiconductor Inc...
Страница 1114: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1114 Freescale Semiconductor Inc...
Страница 1156: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1156 Freescale Semiconductor Inc...
Страница 1304: ...On The Go Operation K53 Sub Family Reference Manual Rev 6 Nov 2011 1304 Freescale Semiconductor Inc...
Страница 1334: ...USB Voltage Regulator Module Signal Descriptions K53 Sub Family Reference Manual Rev 6 Nov 2011 1334 Freescale Semiconductor Inc...
Страница 1388: ...Initialization Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 1388 Freescale Semiconductor Inc...
Страница 1514: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1514 Freescale Semiconductor Inc...
Страница 1622: ...Software restrictions K53 Sub Family Reference Manual Rev 6 Nov 2011 1622 Freescale Semiconductor Inc...
Страница 1694: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1694 Freescale Semiconductor Inc...
Страница 1704: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1704 Freescale Semiconductor Inc...
Страница 1734: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1734 Freescale Semiconductor Inc...
Страница 1800: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1800 Freescale Semiconductor Inc...
Страница 1822: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 1822 Freescale Semiconductor Inc...