Shop OBEX P1 Docs P2 Docs Learn Events
Constant period, variable duty cycle PWM — Parallax Forums

Constant period, variable duty cycle PWM

John AbshierJohn Abshier Posts: 1,116
edited 2006-11-29 23:51 in Propeller 1
Will the counter application note cover constant period, variable duty cycle PWM?· I am thinking·of interfaces such as
Setup(pin(s), period/frequency)
SetDuty(duty) or SetDuty(motor, duty) for two motors
Looking at H-bridge ICs they frequently use a PWM input with two pins, one the inverse of the other.· Others only need one PWM input.· One cog to control two motors would be nice for differentia drive robotics.

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-11-29 18:09
    Yes, code is included that performs variable duty cycle PWM. The code can very easily be adapted to differential output (though doing a neutral output would take a bit of work). The first three Application Notes are undergoing final review (Counters is done with final review, but we have decided to release the first 3 as a group to test the submission and posting system).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • John AbshierJohn Abshier Posts: 1,116
    edited 2006-11-29 23:51
    Thanks Paul. I will wait for it.
Sign In or Register to comment.