Counting Pulses
ncc1702
Posts: 1
Hi to all
I'm new to the Propeller Chip, [noparse][[/noparse]Used BS-II's for years]. I need to count a string of pulses, keeping
a running total and uploading the total every of often..
Now my pulse stream can very, from 6000 to 54000 per hour. The pulses have approx. 50% duty cycle.
I would [noparse][[/noparse]maybe] like some Debounce on the input.
With the BS-II I could use the "Button" Command....
Any Help or Direction would be much appreciated
I'm new to the Propeller Chip, [noparse][[/noparse]Used BS-II's for years]. I need to count a string of pulses, keeping
a running total and uploading the total every of often..
Now my pulse stream can very, from 6000 to 54000 per hour. The pulses have approx. 50% duty cycle.
I would [noparse][[/noparse]maybe] like some Debounce on the input.
With the BS-II I could use the "Button" Command....
Any Help or Direction would be much appreciated
Comments
In the code, the counter is reset to 0 (phsa) when called, but that's not really needed, you can keep it free-running between reading the accumulated value.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters- Close out on Adapters!
Southern Illinois University Carbondale, Electronic Systems Technologies