Timer library updated

Post Reply
User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Timer library updated

Post by majenko » Sun Feb 01, 2015 3:07 pm

I have added some extra functionality to my Timer library to allow much more funky things to be done.

* Added external sources

Allows you to count input pulses on a timer input pin.

* Added gated timer mode

This allows you to use the timer input pin as a gate for measuring the length of pulses

* Added examples:

FrequencyCounter - counts the number of pulses coming in and calculates the frequency from it.

FrequencyTimer - Measures the length of a pulse and calculates the frequency based on an assumed 50% duty cycle

DutyCounter - Measures the length of a pulse, and also the time between pulses, and calculates both the frequency and the duty cycle of the signal.

And all of those are completely interrupt based so just run in the background while you do what you want with the results.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply