Other Parts Discussed in Thread: MSP430F6779, UNIFLASH, MSP430F67791A, TIDM-THDREADING
Hello,
I want to implement THD measurement for the evm430-f6779 energy meter board. The THD measurement was implemented in IAR but not in EMDC generated CCS programs. I am finding it difficult to implement it for my board. As per the document I generated a pure sine wave which would be used for fundamental RMS voltage calculation using iqsine method with 256 samples per quadrature signal( i.e. 1025 samples in all).
And according to the following section, for fundamental RMS voltage calculation we require Vpure and Vph of which Vpure has been generated but I am not able to find how to acquire Vph from the program. In hal_adc.c the raw adc data is fed to voltageSamplePtr but that doesn't seem useful. I am not able to get the raw adc data which is being calculated properly.
Please suggest some ways to resolve this problem. In other words how to evaluate fundamental rms voltage?
Thanks
Avinash