pwm program for wo pulses in arduino due

Status
Not open for further replies.

gosrivats

Newbie level 5
Joined
Jan 21, 2012
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Chennai, Tamil Nadu, India
Visit site
Activity points
1,347
i want to generate 50khz frequency two pulses for my power electronic circuit...i fis figured out how to generate 50khz frequency...now have a doubt how to create two pulses with a delay
 

i want to generate 50khz frequency two pulses for my power electronic circuit...i fis figured out how to generate 50khz frequency...now have a doubt how to create two pulses with a delay

By "two pulses with a delay", do you mean that you want your two pulses to be out of phase?
 

I haven't used the Arduino PWM libraries but I'm sure you can realize it using that. One idea could be to use the output compare module off the same timer module to initiate the PWM output at different starting points and ending points. This would enable you to offload the PWM generation to hardware and do something else while the outputs are being driven. All you'd need to do is define the points at which to drive the outputs high and low.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…