Author Topic: pwm phase delay  (Read 1471 times)

m777

  • Newbie
  • *
  • Posts: 10
pwm phase delay
« on: May 04, 2015, 06:14:37 PM »
Hello,

I have the following code.  I'm using 2 pwm pins to generate 2 pulses.  How do I add a phase delay on pwm pin 2.  I notice that both pulse goes from low to high at the same time.  I'm monitoring the 2 pulses using an oscilloscope.  I would appreciate any help.  Thanks.

mb.pwmOn(1)
mb.pwmDuty(1, 200)
mb.pwmOn(2)
mb.pwmDuty(2, 700)