serial in command
neaor
Posts: 4
Hi, i was wondering if there is any way to have the stamp check for serial input commands while executing a pulse width modulation command. ie do the pulse width modulation command until the serial input says to stop. currently, i only know how to set the stamp to do the pulse width modulation for a set amount of time, not until the user inputs something serially. Thanks.
Comments
Fundamentally, the PBASIC Stamp is a single tasking processor, and as such can only perform one task at a time. However, if the PWM process were done by a separate off-board co-processor (as is often done) then you CAN do both.
Parallax offers two different co-processors, for performing just such tasks. Here they are for your perusal:
PWMPAL: http://www.parallax.com/detail.asp?product_id=28020
PSC: http://www.parallax.com/detail.asp?product_id=28023
As you can see by the descriptions of each, on the Parallax web site above, the PSC is more geared to the specific task of driving R/C servos, which is a common application for the Basic Stamps.
There are also others who offer PWM co-processors: http://www.awce.com/pak5.htm .
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...