FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
26
Freescale Semiconductor, Inc.
Firmware Functions
3.2.17
UINT8 TPMS_READ_V0(UINT16 *u16Result, UINT8 u8Avg)
•
Description:
Performs an 10-bit uncompensated measurement at pin PTA0.
•
Stack size:
23 bytes
•
Approx. Duration:
107 usec
•
Power Management:
This function requires the core to be configured for STOP4 mode and
running at full bus speed.
•
Interrupt Management:
This function utilizes the ADC interrupt to wake-up from STOP mode.
•
Resources:
ADC, PTA0.
•
Input Parameters:
— UINT16 *u16Result: Updated 10-bit uncompensated measurement.
— UINT8 u8Avg: Number of measurements to average into one result. The value can be set to 1,
2, 4, 8, or 16.
•
Returns
:
— UINT8 u8Status: Valid error flags/outputs are described in
3.2.18
UINT8 TPMS_READ_V1(UINT16 *u16Result, UINT8 u8Avg)
•
Description:
Performs an 10-bit uncompensated measurement at pin PTA1.
•
Stack size:
23 bytes
•
Approx. Duration:
107 usec
•
Power Management:
This function requires the core to be configured for STOP4 mode and
running at full bus speed.
•
Interrupt Management:
This function utilizes the ADC interrupt to wake-up from STOP mode.
•
Resources:
ADC, PTA1.
•
Input Parameters:
— UINT16 *u16Result: Updated 10-bit uncompensated measurement.
— UINT8 u8Avg: Number of measurements to average into one result. The value can be set to 1,
2, 4, 8, or 16.
•
Returns
:
— UINT8 u8Status: Valid error flags/outputs are described in
Table 21. Valid output conditions for TPMS_READ_V0 and TPMS_READ_V1
u8Status Value
Measurement Value
Condition
$01
$0000
Reading not acquired.
$00
Between $0000 - $03FE
Valid reading.