Execution Information; Code Example; Figure 13 Code Example For Usage Of The Functions Ecc_Check() And Crc16_Check(); Table 144 Ecc_Check: Execution Time And Charge Consumption - 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.33.7

Execution Information

Table 144
ECC_Check: Execution Time and Charge Consumption
Parameter
Execution Time
Charge Consumption
2.33.8

Code Example

// Library function prototypes
#include "SP37_ROMLibrary.h"
void main()
{
// Return value of ECC check is stored in StatusByte
unsigned char StatusByte;
// ECC check function call to reset the ECC check function
StatusByte = ECC_Check();
// CRC16 check function call to test User Data Sector
StatusByte = CRC16_Check(0x5780,0x80);
// ECC check function call
StatusByte += ECC_Check();
if(!StatusByte){
// Both ECC and CRC16 check were successful
}
else{
// ECC and or CRC16 check was not successful
}
}
Figure 13
Code example for usage of the functions ECC_Check() and CRC16_Check()
ROM Library Function Guide
Symbol
Values
Min.
Typ.
t
6
Q
0,009
Tire Pressure Monitoring Sensor
Unit
Note / Test Condition
Max.
7
µs
DIVIC = 00
0,016
µC
DIVIC = 00
112
ROM Library Functions
H
H
Revision 1.0, 2011-12-15
SP37

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents