FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
28
Freescale Semiconductor, Inc.
Firmware Functions
•
Interrupt Management:
This function does not await any interrupts. It
WILL
be affected by
interrupts.
•
Resources:
TPM, SIMOPT2, RFM
•
Input Parameters:
— None
•
Returns
:
— UINT8 u8Error: 128 when no error is found. Each LSB away from this value is equal to a
0.78% error. For example, if u8Error = 125, MFO has a -2.34% error, or is running at 122 kHz.
255 is reserved as an error code for when the external XTAL is not present.
WARNING
This routine writes to
SIMOPT2
. Any configuration involving this register
must be performed before calling this routine.
3.2.21
void TPMS_RF_ENABLE(UINT8 u8Switch)
•
Description:
This function enables or disables the RF module in the FXTH87xx11 and
FXTH87xx12 and transfers adequate PLL trim data to the module. It should be called prior to any
other RF operation.
•
Stack size:
4 bytes
•
Approx. Duration:
378 usec
•
Power Management:
This function executes entirely in RUN mode.
•
Interrupt Management:
This function does not await any interrupts. It will be affected by
interrupts.
•
Resources:
SIMOPT1, RFM
•
Input Parameters:
— UINT8 u8Switch: Enable (non-zero) or disable (zero) RFM.
•
Returns
:
— void.
WARNING
This routine writes to
SIMOPT1
. Any configuration involving this register
must be performed before calling this routine.