FXTH87xx11 and FXTH87xx12 Embedded Firmware User Guide, Rev. 2.1
2
Freescale Semiconductor, Inc.
Globals and formats
2.1.1
TPMS_INTERRUPT_FLAG
This global variable keeps track of interrupts that have occurred. FXTH87xx11 and FXTH87xx12
Embedded Firmware uses it to keep track of expected interrupts. It can also be utilized by the user for its
own purposes.
The TPMS_INTERRUPT_FLAG is not cleared automatically. Users
must
clear this variable after
power-on-reset.
shows the TPMS_INTERRUPT_FLAG format. The trigger condition column describes what is
necessary for that flag to be set.
TPMS_INTERRUPT_FLAG is 1 byte long and is located at address $8F. Users must account for this
variable when developing for the FXTH87xx11 and FXTH87xx12.
2.1.2
TPMS_CONT_ACCEL_GLOBAL_VARIABLE
TPMS_CONT_ACCEL_GLOBAL_VARIABLE is 1 byte long and is located at address $8E. Users must
account for this variable when developing for the
FXTH87xx11 and FXTH87xx12
, and can ignore the
contents of said variable as long as it is not overwritten. It is used internally by the TPMS_READ_ACCEL
family of functions and its purpose it to communicate the next measurement’s sampling rate when the
u8Avg
argument is set to a value greater than 2.
Table 1. Global variables and their locations
Name
Address
Reference
TPMS_CONT_ACCEL_GLOBAL_VARIABLE
$8E
TPMS_INTERRUPT_FLAG
$8F
Table 2. TPMS_INTERRUPT_FLAG format and trigger conditions
Flag
BIT
Trigger condition
LVD Interrupt
7
LVD interrupt entered.
PWU Interrupt
6
PWU interrupt entered.
TOF Interrupt
5
TOF interrupt entered.
LFR Error Interrupt
4
LFR interrupt entered and LFERF bit of the LFS register is set.
ADC Interrupt
3
ADC interrupt entered.
LFR Interrupt
2
LFR interrupt entered and LFERF bit of the LFS register is clear.
RTI Interrupt
1
RTI interrupt entered.
KBI Interrupt
0
KBI interrupt entered.