Meas_Supply_Voltage(); Description; Actions; Prototype - Infineon SP37 Function Manual

High integrated single-chip tpms sensor with a low power embedded microcontroller and wireless fsk/ask uhf transmitter
Table of Contents

Advertisement

2.8

Meas_Supply_Voltage()

2.8.1

Description

This function performs a battery voltage measurement and returns both raw and compensated voltage results. The
compensated battery voltage result is compensated for offset error.
2.8.2

Actions

Measure the supply voltage sensor with 2 ADC samples for averaging
Compensate for offset using calibration data stored in FLASH
2.8.3

Prototype

unsigned char Meas_Supply_Voltage ( signed int idata * Batt_Result )
2.8.4
Inputs
Table 42
Meas_Supply_Voltage: Input Parameters
Register / Address
R7
2.8.5
Outputs
Table 43
Meas_Supply_Voltage: Output values
Register/ Address
R7
*Batt_Result+0
*Batt_Result+1
ROM Library Function Guide
Type
Name
signed int
Batt_Result
idata*
Type
Name
unsigned char StatusByte
signed int
Compensated
battery voltage
signed int
Raw battery voltage 10 Bit ADC Result Value:
Tire Pressure Monitoring Sensor
Description
Pointer to an integer array in RAM to receive the
measurement result
Description
0000.0000
: Success
B
xxxx.xxx1
: Underflow of ADC Result
B
xxxx.xx1x
: Overflow of ADC Result
B
8000
= -4096.0 mV (Only theoretical number)
H
0000
=
0.0 mV
H
7FFF
= 4095.875 mV
H
( = 4096 mV - 1 LSB where 1 LSB = 1/8 mV)
0000.00xx.xxxx.xxxx
59
SP37
ROM Library Functions
B
Revision 1.0, 2011-12-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents