How to control the frequency of pwm in compare pwm block?
Submitted by gamemuresh on Thu, 04/03/2014 - 10:34
Hi, I am trying to convert the pwm from the dsp kit to sine wave using RC low pass filter. upto 20Hz i had converted to sine, but what i required is for 50Hz. I tried by changing the sample period block in PWM compare block, but it didn't give any useful result.
Find more posts tagged with
Sort by:
1 - 4 of
41
Submitted by Anders89 on Fri, 04/04/2014 - 10:15.
You can find a sin driving a PWM in the example file attached the the previous forum post
The example is set to 4 kHz. Right click the sawtooth driving the sin and change the frequency from 4 kKz to 50 Hz.
Submitted by Anders89 on Thu, 04/03/2014 - 20:24.
You don't want to touch your PWM period, that will screw up your RC filter. Just use a 50Hz sin input to the PWM block compare input pin. Attach your diagram and we will modify it to work.