Go Down

Topic: Frequency measure with interrupts (Read 507 times) previous topic - next topic

Petersauber

Hi

I like to measure the frequency of an oscilator with an arduino mega 2560.
For bascom there are a lot of tutorials and solutions available.

Do you have an interrupt solution in arduino C for my.

Thanks

Peter


MarkT

What frequency range?  Analog or digital waveform?  For direct measurement of digital signal you could consider using a counter/timer directly (you have to use certain pins though that are hardwired to the various Mega timers)
[ I won't respond to messages, use the forum please ]

Petersauber

#3
Aug 09, 2012, 05:09 pm Last Edit: Aug 10, 2012, 08:43 am by Petersauber Reason: 1
The frequency range is between 10 ans 300 kHz. An oscilator (LM311) build the digital waveform.
Do you have some codesnipps for timer1?
Thanks
Peter

Go Up