Background PWM
wcummins
Posts: 12
hi, I'm new to Basic Stamp. I've been looking at the commands and was wondering if it is possible to get a background PWM. That is a continuous PWM without the restraint of Duration?
Comments
The Propeller, because it's a multiprocessor (8 independent cores), can do this. It's possible for a Basic Stamp to approximate this in some circumstances, by interleaving code for generating the pulses with other things. Servo motors are slow enough for this. They only need a PWM pulse about once every 20ms and the pulse width ranges typically from 1ms to 2ms. That leaves about 18ms for the Stamp to do other things.