Globals and formats
FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
Freescale Semiconductor, Inc.
3
2.2
Measurement error format
2.2.1
Definition of Signal Ranges
Each measured parameter (pressure, voltage, temperature, and acceleration) results from an ADC
conversion of an analog signal. This ADC result may then be passed by the firmware to the application
software as either the raw ADC result or further compensated and scaled for an output between one and
the maximum digital value minus one. The minimum digital value of zero and the maximum digital value
are reserved as error codes.
The signal ranges and their significant data points are shown in
. In this definition the signal source
would normally output a signal between S
INLO
and S
INHI
. Due to process, temperature and voltage
variations this signal may increase its range to S
INMIN
to S
INMAX
. In all cases the signal will be between
the supply rails, so that the ADC will convert it to a range of digital numbers between 0 and 1023 (or 0 and
4095 in the case of temperature readings). These digital numbers will have corresponding D
INMIN
, D
INLO
,
D
INHI
, D
INMAX
values. The ADC digital value is taken by the firmware and compensated and scaled to
give the required output code range.
Digital input values below D
INMIN
and above D
INMAX
are immediately flagged as being out of range and
generate error bits and the output is forced to the corresponding railed-high or railed-low values.
Digital values below D
INLO
(but above D
INMIN
) or above D
INHI
(but not D
INMAX
) will most likely cause
an output that would be less than 1 or greater than 510, respectively. These cases are considered underflow
or overflow, respectively. Underflow results will be forced to a value of 1. Overflow results will be forced
to a value of 510.
Digital values between D
INLO
and D
INHI
will normally produce an output between 1 to 510 (for a 9-bit
result). In some isolated cases due to compensation calculations and rounding the result may be less than
1 or greater than 510, in which case the underflow and overflow rule mentioned above is used.