Hi,
I have C2000 experimental kits with TMS320F28035 to start evaluating my product. I am new in power design and software.
I want to calculate the AC input voltage RMS & frequency range is from 40-65HZ.
The sampled input signal to ADC is a sine wave from 0 -3V connected with B1.
I want to implement:
1. Input sine wave for zero crossing detection and frequency calculation.
2. Detect another sine wave which is from a feedback loop from the output for load balancing.
3. generate sine wave PWM based on frequency calculate from step 1 sine wave and RMS voltage from sine wave from step 2 to set amplitude for load balancing.
Previously I implemented this by using solar micro inverter example.
I am getting RMS value but having an issue with detecting the frequency of step 1 input sine wave.
I have used PLL on input sine wave and calculate sine wave from the following equations :
input Freq=(long)(spll2.fo)>>3;
as above I am getting fluctuation in sine wave frequency.
Does anyone have a suggestion how can I get an accurate frequency of input sine wave?
if any have suggestions for another example in that I can achieve my requirement please suggest.
If you need more information let me know.
thanks in advance.
BR,
Jignesh Patel