OlyMEGA Forums
https://www.olymega.org/forum/

Frequency counter
https://www.olymega.org/forum/viewtopic.php?f=60&t=350
Page 1 of 1

Author:  polymorph [ Wed Feb 08, 2017 1:16 pm ]
Post subject:  Frequency counter

Although there are sample projects using Arduinos and Microchip PIC processors, and kits available using them... for ease of build and utility, hard to beat a chip dedicated to the purpose.

https://www.intersil.com/content/dam/Intersil/documents/icm7/icm7226a-b.pdf

Intersil ICM7226
Features
• CMOS Design for Very Low Power
• Output Drivers Directly Drive Both Digits and
Segments of Large 8-Digit LED Displays
• Measures Frequencies from DC to 10MHz; Periods
from 0.5µs to 10s
• Stable High Frequency Oscillator uses either 1MHz or
10MHz Crystal
• Both Common Anode and Common Cathode Available
• Control Signals Available for External Systems
Interfacing
• Multiplexed BCD Outputs
Applications
• Frequency Counter
• Period Counter
• Unit Counter
• Frequency Ratio Counter
• Time Interval Counter

The ICM7216 is a little newer, although both are classed as obsolete, they are still available from eBay for under $10 each.

I will look into using a Teensy 3.x as a frequency counter/period timer. An issue is the ability to calibrate, as the clock on the Teensy is not adjustable.

Looks like the FreqCount and FreqMeasure libraries are good from 0.1Hz to 65MHz. Shouldn't use any code that uses interrupts while doing this, though.
FreqCount: best for 1 kHz to 8 MHz (up to 65 MHz with Teensy 3.0 & 3.1)
FreqMeasure: best for 0.1 Hz to 1 kHz
https://www.pjrc.com/teensy/td_libs_FreqCount.html

To measure period on a Teensy should just need the use of micros() and an interrupt.

To get higher than 10MHz requires a prescaler. The MC12080 is capable of up to 1.1GHz, dividing 10, 20, 40, or 80.
http://www.onsemi.com/pub_link/Collateral/MC12080-D.PDF

Only $5 each from Mouser:
http://www.mouser.com/ProductDetail/ON-Semiconductor/MC12080DG/?qs=sGAEpiMZZMvF5pwBO0TOJ6vTpOnAhVAMMTh%252bKCS6XiA%3d

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/