A N 3 7 0
86
Rev. 1.0
Turning on the bandgap will cause the vSys_BandGapLdo() function to wait 25 µs. Turn-
ing on the LDO will cause the vSys_BandGapLdo() function to wait 6 µs. These wait
times are required to let the voltages come to their stable levels. If the user application
accesses the MTP or NVM memory, the BandGapLdo setting has to be 2 for the time of
the MTP or NVM access, or can be set to 2 all time.
Whenever the analog blocks needs BandGap and there is no MTP nor NVM access, either
setting 1 or setting 2 can be used.
If there is no transmission for a long period of time and only digital is running, then it can
be beneficial to use setting 0 to turn the BandGap off to save power (about 100 uA).
Note that vStl_PreLoop() calls the vSys_BandGapLdo( 1 ), which changes the user set-
ting. After you called the vStl_PreLoop(), change the bandgap/ldo setting back to your lik-
ing.
Inputs
:
biBandGapLdoCtrl
: (BYTE) Controls the bandgap and LDO states. See values
in the table above.
Outputs
:
None
vSys_ForceLc
Description
: Forces the LC oscillator to turn on. If the LC oscillator was on previously,
the function keeps it on and returns immediately. If the LC oscillator was off the function
forces it on and waits about 125us for LC to stabilize before returning.
Inputs
:
None
Outputs
:
None