Counting pulses (counter/accumulator)
Franklin
Posts: 4,747
I need a way to offload the job of counting the number of pulses comming from an anemometer to a chip or circuit that I can query to find how many have elapsed. I can use the main processor to do the math, all I need is a running count. 16 bits would be nice but other esolutions could work. Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
If you use the Propeller chip, I think this would be a piece of cake. One of its built-in counter modules will do all the counting and your main program can simply look at the count values after so many tenths of a second or seconds or whatever time scale you desire. Meanwhile, the rest of the Propeller chip (it has multiple parallel processors) can run on its own, do calculations, and drive a TV display, or VGA display and/or record your data onto SD cards. You can simultaneously run a real time clock, too. In fact, you could probably very easily observe several anemometers with a single chip.
http://forums.parallax.com/showthread.php?p=809389