AN370
Rev. 1.0
99
vSys_Setup( 1 );
/* Setup the bandgap for working with the temperature sensor here */
vSys_BandGapLdo( 1 );
/* Setup the PA.
* fAlpha and fBeta has to be set based on antenna configuration.
* Chose a PA level and nominal cap. Both values come from
* the calculation spreadsheet. */
rPa_Setup.fAlpha = 0.0;
rPa_Setup.fBeta = 0.0;
rPa_Setup.bLevel = 60;
rPa_Setup.wNominalCap = 256;
rPa_Setup.bMaxDrv = 0;
/* Setup the PA */
vPa_Setup( &rPa_Setup );
/* Setup the ODS */
rOds_Setup.bModulationType = 1; /* Use FSK */
rOds_Setup.bClkDiv = 5;
rOds_Setup.bEdgeRate = 0;
/* Set group width to 7, which means 8 bits/encoded byte to be transmitted.
* The value must match the output width of the data encoding function
* set by the vStl_EncodeSetup() below! */
rOds_Setup.bGroupWidth = 7;
rOds_Setup.wBitRate = 417;
/* Configure the warm up intervals LC: 8, DIV: 4, PA: 4 */
rOds_Setup.bLcWarmInt = 8;
rOds_Setup.bMpllWarmInt = 4;
rOds_Setup.bPaWarmInt = 4;
/* ODS setup */
vOds_Setup( &rOds_Setup );