
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
64
Revision 1.0, 2011-12-15
2.10
Trig_Supply_Voltage()
2.10.1
Description
Trig_Supply_Voltage() is the second part of a set of three functions to measure the battery voltage during RF
transmission. It is called after Start_Supply_Voltage(), and triggers an ADC battery voltage measurement. Upon
the call of this function the ADC resumes from standby, performs a measurement and then goes back to standby,
keeping the result. Typically this function is called by the application immediately after an RF datagram byte is
shifted into SFR RFD to prevent disruption of RF data transmission.
2.10.2
Actions
•
Bring ADC from standby to active state
•
Measure the supply voltage sensor with ADC
•
Place ADC into standby state
2.10.3
Prototype
void
Trig_Supply_Voltage
( void )
2.10.4
Inputs
2.10.5
Outputs
2.10.6
Resource Usage
Table 50
Trig_Supply_Voltage: Input Parameters
Register / Address
Type
Name
Description
None
---
---
---
Table 51
Trig_Supply_Voltage: Output values
Register/ Address
Type
Name
Description
None
---
---
---
Table 52
Trig_Supply_Voltage: Resources
Type
Used or Modified
Registers
---
SFR
---
Stack
0 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function