Shop OBEX P1 Docs P2 Docs Learn Events
Hardware PWM — Parallax Forums

Hardware PWM

JonathanJonathan Posts: 1,023
edited 2005-06-21 16:15 in General Discussion
Hi All,

Looking through the data sheets, I *think* I see that only the SX48/52 have hardware PWM. Is this correct?

Thanks,

Jonathan

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot

Post Edited (Jonathan) : 6/18/2005 5:10:46 PM GMT

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-06-20 16:37
    Yes you are correct that only the SX48/52 have internal timers capable of a hardware PWM. But the SX is so fast and it was designed to virtualize almost any traditional hardware feature (UART, SPI, I2C etc) that it isn't really a loss not having the hardware PWM. For an implementation of a 16 channel PWM virtual peripheral (meaning it works on the SX28 as well) look in the projects forum for Bean's post of the 16 channel PWM.
  • JonathanJonathan Posts: 1,023
    edited 2005-06-21 16:10
    Thanks Paul, I'll look into that. Does that sort of routine have to be written in assembler, or is the BASIC fast enough?

    Jonathan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-06-21 16:15
    Bean's project is written in SX/B which gets compiled to assembler -- you get the speed of assembly with the ease of BASIC.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.