A N 3 7 0
90
Rev. 1.0
ing to biLedIntensity value.
Outputs
:
None
vSys_LpOscAdj
Description
: Fine adjust the low power, 24MHz system clock, oscillator based on current
chip temperature.
The function requires that the temperature sensor demodulator ISR is present (DMD ISR).
The function calls the vDmdTs_RunForTemp() function and waits for the first valid tem-
perature sample. It does not check whether the temperature sensor is already running. It
clears all the demodulator hardware and starts temperature measurement from scratch.
Since the function calls vDmdTs_RunForTemp(), it forces the DMD interrupt enable flag
EDMD and the global interrupt enable flag EA to be enabled:
EDMD = 1;
EA = 1;
If the user does not desire the temperature demodulator or temperature sensor running
after the return from the function then the user is required to disable those manually after
the return from this function:
/* Disable the DMD TS interrupt. Make sure that each interrupt
* disable is followed by at least 2 byte instruction! */
EDMD = 0;
EDMD = 0; /* Wasteful, but no need to inspect the assembly */
/* Disable the TS and DMD hardware */
vDmdTs_Enable( 0 );
biLedIntensity
LED Current
0
LED off
1
0.37 mA
2
0.60 mA
3
0.97 mA