Execution Information; Code Example; Figure 11 Code Example For Usage Of Stopxtalosc(); Table 77 Stopxtalosc: 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.16.7

Execution Information

Table 77
StopXtalOsc: Execution Time and Charge Consumption
Parameter
Execution Time
Charge Consumption
2.16.8

Code Example

// Library function prototypes
#include
"SP37_ROMLibrary.h"
#include
"Reg_SP37.h"
// Defines
#define
bitmask_TMOD_CLK 0x08
#define
bitmask_RFS_RFSE 0x02
void main()
{
// Return value of stop xtal oscillator is stored in StatusByte
signed char StatusByte;
while (!(RFS & bitmask_RFS_RFSE));
RFC &= ~0x03;
TMOD &= ~bitmask_TMOD_CLK;
StatusByte = StopXtalOsc();
if(StatusByte != -2){
// Xtal oscillator is stopped or was already off
}
}
Figure 11
Code example for usage of StopXtalOsc()
ROM Library Function Guide
Symbol
Values
Min.
Typ.
t
20
Q
0,035
Tire Pressure Monitoring Sensor
Unit
Note / Test Condition
Max.
22
µs
DIVIC = 00
0,058
µC
DIVIC = 00
// Wait for RF Transmission to end
// Disable PA & PLL
// Clear TMOD_CLK
// Stop XTAL oscillator
78
ROM Library Functions
H
H
Revision 1.0, 2011-12-15
SP37

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents