· Im using count to measure rpm but the whole program pauses as it is counting, Is there any way to use count without slowing the execution of the program?
Thanks
Remember that the Stamp is a single-tasking machine. While it is executing the COUNT statement, it is doing nothing else. There are ways to "simulate" a multi-tasking operation, but without further details of your project, suggestions would be shooting in the dark.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
This guy sells a $12, simple 8-pin chip, which gives you a square wave you can use to synchronize your program. This may be exactly what you need. Read up on the "Simple Multi-Tasking" approach.
It also gives you one channel of buffered serial recieve -- but·the 'definite timed' multi-tasking is really useful.
Comments
Only if the detector and counter were off-board, meaning separate components.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
This guy sells a $12, simple 8-pin chip, which gives you a square wave you can use to synchronize your program. This may be exactly what you need. Read up on the "Simple Multi-Tasking" approach.
It also gives you one channel of buffered serial recieve -- but·the 'definite timed' multi-tasking is really useful.