Firmware Functions
FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
Freescale Semiconductor, Inc.
33
3.2.29
void TPMS_RF_DYNAMIC_POWER(UINT8 u8CompT, UINT8
u8CompV, UINT8* pu8PowerManagement)
•
Description:
Depending on the passed parameters, this function can:
— Force the RF power setting (RFCFR2_PWR) to a passed value (when BIT5 of
u8PowerManagement is clear).
— Set the RF power setting (RFCFR2_PWR) dynamically based on voltage, temperature, and
current carrier frequency (when BIT5 of u8PowerManagement is set). The power domains for
this function are described in the FXTH87xxxx family of data sheets.
— Similar to the case above, the user can specify a target power region with an offset.
•
Stack size:
21 bytes
•
Approx. Duration:
140 usec when calculating dynamic power; 20 usec when power setting is
passed.
•
Power Management:
This function executes entirely in RUN mode.
•
Interrupt Management:
This function does not await any interrupts. It will not be affected by
interrupts.
•
Resources:
RFM
•
Input Parameters:
— UINT8 u8CompT: Compensated temperature reading
— UINT8 u8CompV: Compensated voltage reading
— UINT8* pu8PowerManagement: This is a pointer to an array of five elements as described
below.
Table 24. *pu8PowerManagement format
Index Value
Description
0
Dynamic Compensation switch as described in
.
1
Offset step for power target when temperature is lower than 0°C. Negative values admitted.
2
Offset step for power target when temperature is lower than 25°C and higher than 0°C.Negative values admitted.
3
Offset step for power target when temperature is lower than 60°C and higher than 25°C. Negative values
admitted.
4
Offset step for power target when temperature is higher than 60°C. Negative values admitted.
Table 25. pu8PowerManagement[0] format
BIT
Description
MSB
Not used.
BIT6
Not used.
BIT5
Dynamic compensation enable.
If set, the function will decide what the optimal power setting is based on voltage and temperature; In this case,
values stored in the array will be added to the found target.
If clear, BIT4:0 will be used to set the power level directly.
BIT4:0
When BIT5 is clear, the value passed here will be used to set the RF power step directly.