View unanswered posts | View active topics It is currently Tue Sep 26, 2017 4:07 am



Reply to topic  [ 3 posts ] 
 Frequency counter 
Author Message

Joined: Sun Aug 26, 2012 2:08 pm
Posts: 1048
Location: Lacey, WA USA
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

_________________
Steve Greenfield AE7HD


Wed Feb 08, 2017 1:16 pm
Profile

Joined: Sun Aug 26, 2012 2:08 pm
Posts: 1048
Location: Lacey, WA USA
I'm going to start by trying to build a frequency counter using a Teensy 3.0 with an LCD screen.

Then slowly integrate more functions including period timer, duty cycle measure, Ton/Toff measurement, etc.

Then start integrating control of a DDS like the AD9850/51/33.

_________________
Steve Greenfield AE7HD


Wed Jun 07, 2017 9:14 am
Profile

Joined: Sun Aug 26, 2012 2:08 pm
Posts: 1048
Location: Lacey, WA USA
FreqCount and FreqMeasure by Paul of Teensy have some really great features.

https://www.pjrc.com/teensy/td_libs_FreqMeasure.html

Much more info on the Github page:

https://github.com/PaulStoffregen/FreqMeasureMulti

Some tips about using the Nanosecond period counter functions:

https://forum.pjrc.com/threads/45400-FreqMeasureMulti-nanosecond-issue

_________________
Steve Greenfield AE7HD


Tue Jul 25, 2017 7:27 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software