Pages: [1]   Go Down
Author Topic: Frequency measure with interrupts  (Read 469 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Montreal
Offline Offline
Faraday Member
**
Karma: 27
Posts: 2573
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://interface.khm.de/index.php/lab/experiments/frequency-measurement-library/
Logged

0
Offline Offline
Shannon Member
****
Karma: 201
Posts: 11744
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: August 10, 2012, 01:43:28 am by Petersauber » Logged

Pages: [1]   Go Up
Jump to: