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.
Creating sinusoidal PWM
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
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 :
Lubin
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.wam wrote:triangular waveform and obtain the output from PWM1L
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...
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: Creating sinusoidal PWM
Yes,wam wrote:can I get exactly same signal from PWM1L
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.
Who is online
Users browsing this forum: No registered users and 5 guests