This example demonstrates capability of SPLL_1ph_sogi library. In this ramp generator is used to create ramp signal and with sine function, a sine wave of 50Hz frequency is generated. Generated Sine wave is provided as input with amplitude multiplication to SPLL_1ph_SOGI block. To test the output of SPLL block is inphase with input, power measurement library is used which will calculate power factor and it is displayed on console.
Folder/Files | Description |
---|---|
spll_main.c | Main function for testing SPLL |
power_meas_sine_analyzer.h | power measurement library header file |
rampgen.h | rampgen library header file |
spll_1ph_sogi.h | SPLL library header file |
spll.syscfg | DAC configuration as per test usage |
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 nortos |
r5fss0-0 freertos | |
Toolchain | ti-arm-clang |
Boards | am263x-cc |
Example folder | examples/spll |
Shown below is a sample output when the application is run: Input sine wave of 50Hz provided for SPLL block can be observed in DAC port as shown in figure and power factor is calculated between input and output of SPLL block which should be close to 1 as it need to be inphase: