Adc_Selftest(); 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.12

ADC_Selftest()

2.12.1

Description

The ADC self test is a combination of three measurements that use various channels as input and reference for
the ADC. The output of this function is the delta deviation from the ideal value.
2.12.2

Actions

Perform three ADC measurements
Calculate delta from ideal value
2.12.3

Prototype

unsigned char ADC_Selftest(signed int idata * Delta)
2.12.4

Inputs

Table 58
ADC_Selftest: Input Parameters
Register / Address
R7
2.12.5

Outputs

Table 59
ADC_Selftest: Output values
Register/ Address
R7
*Delta
ROM Library Function Guide
Type
Name
signed int
Delta
idata*
Type
Name
unsigned char StatusByte
signed int
Delta
idata*
Tire Pressure Monitoring Sensor
Description
Pointer to an integer array in RAM to receive the
ADC measurement result
Description
0000.0000
: Success
B
xxxx.xxx1
: Underflow of ADC Result
B
xxxx.xx1x
: Overflow of ADC Result
B
The ADC can be considered as working when the
value of Delta is between +/-6 LSBs after a call of
this function during which the supply voltage was
constant.
69
SP37
ROM Library Functions
Revision 1.0, 2011-12-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents