clarken
Newbie level 4
i am doing the final year project about class D amplfier , use some algorithm to produce PWM , then pass to the power amplifier and low pass filter to generate sound.
Since i finish to build the class D amplifier in fypga and also able to see the Power spectral of the generated PWM to measure the THD of the board. The only thing i need to do now is use the matlab to see the Power spectral of the PWM inside the matlab.
I already can produce the PWM in matlab.But i did not know how to draw the power spectral of the PWM and calculate THD. Anyone know, please help me .
My system start with the signa sine wave 5khz, carrier frequency is 200khz , so the PWM had the frequency is 200khz, and will contain the information of 5khz.
Thanks
Since i finish to build the class D amplifier in fypga and also able to see the Power spectral of the generated PWM to measure the THD of the board. The only thing i need to do now is use the matlab to see the Power spectral of the PWM inside the matlab.
I already can produce the PWM in matlab.But i did not know how to draw the power spectral of the PWM and calculate THD. Anyone know, please help me .
My system start with the signa sine wave 5khz, carrier frequency is 200khz , so the PWM had the frequency is 200khz, and will contain the information of 5khz.
Thanks