FORUM TOPIC · READ ONLY
Creating sinusoidal PWM
Creating sinusoidal PWM
Forum : General Remark and Questions
5 message(s) · archive en lecture seule
Hi,
I am kind of new about programming dsPIC and I have limited time to finish my project and I decided to use simulink. I need to generate sinusoidal PWM by comparing sinusoidal reference with triangular waveform and obtain the output from PWM1L pin of the dsPIC30f4011. Can you help me about this? :?: My PWM frequency will be 4 kHz.
I am kind of new about programming dsPIC and I have limited time to finish my project and I decided to use simulink. I need to generate sinusoidal PWM by comparing sinusoidal reference with triangular waveform and obtain the output from PWM1L pin of the dsPIC30f4011. Can you help me about this? :?: My PWM frequency will be 4 kHz.
Re: Creating sinusoidal PWM
Hi Wam,
The project seems quite small and could do it with the demo version of the blockset.
I do not get the meaning of :
You 'd rather start your project and post question about the model you create if you are in trouble.
Lubin
The project seems quite small and could do it with the demo version of the blockset.
I do not get the meaning of :
Citation : wam triangular waveform and obtain the output from PWM1L
You 'd rather start your project and post question about the model you create if you are in trouble.
Lubin
Re: Creating sinusoidal PWM
Hi LubinKerhuel,
Thanks for the reply. I will use normal sinusoidal PWM scheme. As you know if you want to do that you can feed comparator with sinusoidal and triangular waveform. PWM1L is the pin in dsPIC30F4011 and I want to get the PWM output from that pin.
Thanks for the reply. I will use normal sinusoidal PWM scheme. As you know if you want to do that you can feed comparator with sinusoidal and triangular waveform. PWM1L is the pin in dsPIC30F4011 and I want to get the PWM output from that pin.
Re: Creating sinusoidal PWM
Can I get output from motor control PWM pin outputs such as PWM1L. I have to use this because I built my PCB to get PWM output signals from dsPIC. However I am not using motor control modules. I mean instead of getting signal from "OC1" pin, can I get exactly same signal from PWM1L (dsPIC30F4011) pin using your blocks?
Thank you very much...
Thank you very much...
Re: Creating sinusoidal PWM
Citation : wam can I get exactly same signal from PWM1L
Yes,
However, one difference between PWM motor and OC (Output Compare) block is that the PWM signal period cannot be changed during execution (with the PWM block). Since your period is fixed (Frequency set to 4Khz), It is OK.