Maybe I didn't explain it well enough. In case I didn't. What I am thinking is the HPulsin would only work on CCP pins. It would be just a quick clean intuitive way for people to measure frequency, duty cycle etc. I have no idea how Pulsin works behind the scenes and why it isn't as good as using the CCP technique.
Instead of having to set up timers, prescaling, dealing with reseting overflows etc, HPulsin would have a couple defines like Max and Min Frequency (this would set up the prescaling) Then the HPulsin would have a couple parameters like measuring hi or low, where to store the data and then the data stored is converted to real time numbers. It would work in the background and not tie up code execution speed like Pulsin either.
Look at it this way, HPulsin would free up alot of bandwidth on this forum that is used to explain how to use CCP pins too![]()
Bookmarks