SPRUIK4A September 2018 – June 2019 TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28075 , TMS320F28075-Q1 , TMS320F28076 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
Make sure the SCI pins are configured to be used as SCI and the SCI module clock rate value provided to the SCI init routine is correct.
If your native language is not English (USA) and the above behavior is observed, try selecting the English (USA). To do this, go to “Region and Language” using search in the Start Button → select under Formats → English (USA) → Apply.
Maximum frequency measurable is determined by the SFRA_ISR_FREQ and is milted by the nyquist criterion (half of the switching frequency or the frequency at which the SFRA routine is called).
SFRA uses the on-chip ADC whose noise floor for a 12-bit ADC is at approxmiately 60dB-70dB. Therefore, readings of the FRA below 60dB should be interpreted with caution as there may be significant noise elements.
Unless the SFRA is started by writing a '1' to the 'start' variable in the SFRA object (the SFRA GUI also writes to this variabale to initiate a sweep when the start sweep button is clicked), the SFRA injection routine will not do anything to the reference value (inject/collect).
If it is desired to completely remove the SFRA routines, the call to run the SFRA routines can be put under a #define and for release code that #define can be defined as something else or none. As shown below in a typical code, the SFRA may be needed on the voltage or the current and typically the software has a define for this. Hence, to remove the SFRA routines, it can be defined as SFRA_NONE, which will make sure SFRA routines are not compiled into the object.
Also note that although the parameters to the collect routine are passed by reference, the parameters are not modified by the routine.
//SFRA Options
#define SFRA_NONE 0
#define SFRA_CURRENT 1
#define SFRA_VOLTAGE 2
#define SFRA_TYPE SFRA_NONE
......
#if SFRA_TYPE == SFRA_VOLTAGE
gv_out=GV_RUN(&gv, SFRA_F32_inject(vBusRefSlewed), vBus_sensed);
#else
gv_out=GV_RUN(&gv, vBusRefSlewed,vBus_sensed);
#endif
#if SFRA_TYPE == SFRA_VOLTAGE
SFRA_F32_collect(&gv_out,&vBus_sensedFiltered_notch2);
#endif