Frequency counters & 10MHz standards - Page 1
Forum section: electronics / testgear

author: hlavac
author_rank: Frequent Contributor
timestamp: March 24, 2013, 03:45:19 pm
content: I have two questions:Does frequency counter always assume the input is a sine wave / square wave of a single frequency? What happens if it is not the case?How does the standard external 10MHz synchronization signal that some of the instruments can use look like? Is there a standard for it?

author: jpb
author_rank: Super Contributor
timestamp: March 24, 2013, 03:58:42 pm
content: 1. my understanding is that the counter has an edge trigger and the level can be set, there is also probably some means of attenuating large signals. So it doesn't assume any shape but if you set the level in a lot of noise it will give erroneous counts and not be very stable.2. most instruments define the type of signal they expect from an external clock e.g.for the TTi TF830 counter it just has :External Standard SocketAn external 10MHz frequency standard (5V/TTLlevel) can be appliedwhile for the Tabor WW5061 AWG it is more specific:10MHz TTL, 50% ±2% duty cycleThe TTi TG5011 seems quite flexible :Ref Clock InputInput for an external 10MHz reference clockVoltage Range: 1Vpp – 5VppMaximum Voltage: +5VMinimum Voltage: -1Vso generally they want TTL square waves with 50% duty cycle but I think some accept sine waves.

author: olsenn
author_rank: Frequent Contributor
timestamp: March 24, 2013, 04:19:58 pm
content: Counters only measure the number of times a voltage goes from below a value of 'a' to above a value of 'b'. Sometimes these two values are the same, but there is usually hysteresis (schmitt trigger) to avoid any influence of noise.Try not to think about it in the frequency domain; instead, consider the time domain analysis, as you would see on an oscilloscope. Also, since it counts the total number of low-to-high (sometimes high-to-low) transistions in a set time (say 1 second for example), the reading that will be displayed is the average frequency over that one second interval.As for external frequency inputs; it also doesn't depend greatly on the waveform; this reference clock merely clocks the digital logic IC's apon low-to-high transistions, just like the counter itself. My 10MHz rubidium frequency standard for instance produces a sinusoid; however, a TTL square wave will also do the trick.

author: jimmc
author_rank: Frequent Contributor
timestamp: March 24, 2013, 04:25:15 pm
content: JPB has covered your second question well.Your first question is covered by Agilent's AN200http://cp.literature.agilent.com/litweb/pdf/5965-7660E.pdf(p9).Jim

author: hlavac
author_rank: Frequent Contributor
timestamp: March 24, 2013, 05:25:21 pm
content: Excellent appnote, just what i was looking for, thank you!

author: KJDS
author_rank: Super Contributor
timestamp: March 24, 2013, 05:53:03 pm
content: Many years ago I designed the reference locking circuitry for the Marconi Instruments 2945 radio test set. Amplitude or wave shape wasn't that important, and it could tell and adapt to a 1MHz, 5MHz or 10MHz input.

author: codeboy2k
author_rank: Super Contributor
timestamp: March 25, 2013, 11:32:07 am
content: to extend on jpb's answer to #1:I designed a frequency counter input circuit once long ago, it was similar to a scope's input, with 1Meg Ohm impedance, a 22pf cap and an AC/DC coupling switch. After that it was diode clipped to the positive and negative rails, so it would never exceed 600mv peak or so. Then it was gained up about 2000X, so the max 600mv input signal would clip and hit the rails at +/-15V, and a 1mv input signal would be gained up to 2V now, and that was used to feed a schmitt trigger with level set at about 1V, to output a 5V square wave feeding a TTL counter circuit. All of this was discrete transistors. The first input stage after the diode limiting was a common source N Channel JFET. The following stages and the schmitt trigger were BJTs. No op amps.The input worked for sine, square, pulses, triangles, ramps and was spec'ed from 1mv to 10V p-pThis falstad circuit shows diode limiting a 5V peak-to-peak sine wave input to 740mv p-phttp://www.falstad.com/circuit/e-diodelimit.htmlIf I did it again today I would certainly use FET input op-amps, probably can be done in a single 4-device op-amp ( a buffer, 2 gain stages and a schmitt trigger)

author: madshaman
author_rank: Frequent Contributor
timestamp: March 27, 2013, 01:09:14 am
content: Quote from: jimmc on March 24, 2013, 04:25:15 pmAnother thanks from me. Trying to design and build my own and happy to see the initial block diagram roughly matches how I was going to implement it (which to me means I'm likely thinking about the problem the right way).Still a pending digikey order away before I start prototyping, down to picking parts for all the fiddly bits and still waiting for the 10Mhz rubidium reference I nabbed from eBay (tons available), will prolly grab a cheap 10Mhz oscillator in the meantime so I'm not stuck.For flexibility of the time base, planning on making as flexible as possible, i.e. accepting most waveform inputs and power level. Planning on conditioning the input with some filtering and agc, then clamping it with diodes, run it through a Schmitt trigger and finally a counter. Still working figuring out whether I want the time-base itself to automatically drive both the counting then interrupting the mcu for a quick read phase. Hopefully at 10Mhz, even someone like me can make it work.Someone mentioned earlier about making their time base input 1Mohm impedance, would it be better to use 50ohm to match most sources, or at least the ability to switch in a 50ohm impedance like an oscilloscope front-end with that option?

author: codeboy2k
author_rank: Super Contributor
timestamp: March 27, 2013, 04:53:45 am
content: Quote from: madshaman on March 27, 2013, 01:09:14 amYes a 50 ohm switch is useful especially if you plan to measure VHF (30 to 300 Mhz) and UHF (300Mhz to 3Ghz).Also, since you're building it, you can put in an attenuation pad on the 50 ohm input path, so you can switch in 5db, 10db, 20db, 40db attenuation, something like that, whatever you think you might need. Or build an external pad if it's more useful to you.You don't need AGC on your input, you only need to gain it up alot and catch the rising edge, which you will do no matter what, if you gain it up enough.You don't care that it clips. An AGC will try to keep the signal looking nice, but you don't need to, you just need to count the rising edges.

author: madshaman
author_rank: Frequent Contributor
timestamp: March 27, 2013, 05:47:35 am
content: Quote from: codeboy2k on March 27, 2013, 04:53:45 amThanks codeboy2k, I guess agc isn't needed, I'm new in this realm of electronics and my intuition told me I should bring each stage into a known operating realm. Was planning to over gain the signal and clip it deliberately with the diodes anyway but was worried there'd be some effect I wouldn't foresee (due to my lack of experience) if the signal power wasn't constrained at this point, my knowledge at this point in this realm, what little there is, comes from a massive crunch of book learning with no experience (which is why I've set a number of projects for myself which will generate useful bench equipmentI can't wait for all the screw ups and hallucinations I'll encounter bringing this project to completion; maybe the worst that could happen is that it just works ^^'

author: olsenn
author_rank: Frequent Contributor
timestamp: March 27, 2013, 03:24:25 pm
content: QuoteWhy would it working be the worst thing, and why are you hallucinating... don't design on salvia... it doesn't turn out well!

author: madshaman
author_rank: Frequent Contributor
timestamp: March 27, 2013, 04:01:31 pm
content: Quote from: olsenn on March 27, 2013, 03:24:25 pmLol, my lab is off limits to myself unless I'm well rested (well, having slept in at least the last 48 hours..) and sober :-)If everything works, you learn less, it might even work for the wrong reason and you'll never know.Hallucination is a term I picked up playing go, it's my way of describing that situation where everything looks good to you at a given moment in time, but things don't work, the reason being that what you think you're seeing isn't what's actually there, then later you slap your forehead saying "oh my god, why couldn't I see that!". I find this happens *all* the time with every type of engineering. To put it simply: you don't notice what you don't notice. The same thing happens with math proofs, computer programs, wood working, practically everything. Sure, as you gain more experience you make less mistakes, but you generally learn from your screw-ups caused by perceptual blindness.Some people may feel they are very solid and accurate and sober and clear thinking, and maybe they are, I tend to find the world is *full* of constant misconceptions, and they can all be a fun source of learning.

author: Rufus
author_rank: Super Contributor
timestamp: March 27, 2013, 05:16:43 pm
content: Quote from: codeboy2k on March 27, 2013, 04:53:45 amIf your 50 ohm input could handle lets say a modest +20dbm to have any point a 40db attenuator in front of it would need a 1kW power rating.

author: kfitch42
author_rank: Frequent Contributor
timestamp: March 27, 2013, 08:24:52 pm
content: Speaking of DIY frequency counters:http://dangerousprototypes.com/2013/03/27/1hz-to-10mhz-frequency-meter-using-attiny2313/

author: codeboy2k
author_rank: Super Contributor
timestamp: March 28, 2013, 05:50:51 am
content: Quote from: Rufus on March 27, 2013, 05:16:43 pmI worked with large transmitters in the past, from 5KW AM up to 250KW FM so large attenuations are always something I think about (and dummy loads that fill half a room!)Probably not needed at the hobbyist level, yeah.

author: madshaman
author_rank: Frequent Contributor
timestamp: March 28, 2013, 05:57:12 am
content: Lol, not quite sure how soon I'll want to jump into 250KW face-sublimating power levels. In the perhaps distant future I *could* see myself getting near 1KW, but that's quite a ways off.