Part Number: TMS320F28027
HELLO!
We are trying to calculate phasor of sinusoidal voltage signal for power system relaying application. As the first step we need to sample the analog voltage signal taken directly from the source, which we have given to adc input channel A1. Using the samples, we want to use DFT recursive window algorithm to calculate the phasors. We simulated the DFT algorithm in MATLAB for limited number of samples where the magnitude of the phasor was a straight line under steady state conditions. We want to implement it in real time using dsp, but as we were not getting the desired results using DSP. Therefore we think it is the problem with sampling data. Because, we imported the samples from memory browser in the form of .dat file. When we plotted twenty samples, we got a complete cycle of sine wave. So, ideally, we should get 5 cycles with 100 samples, but we are getting more cycles (around 7).
For our algorithm, we require sampling rate to be 1000Hz (20 samples per cycle for 50Hz signal).
We have kept TB PRD as 03E8 (decimal equivalent is 1000).
Our source signal when viewed on the CRO gives a clean sinusoidal wave. however after sampling it, it has many glitches when viewed using 'graph'.we tried varying TB PRD, but there is no significant change.
Please suggest what can be done to get the desired sampling rate.
Thank you!