|Processor used:||Siemens SDA30C163 (8051 derivative)|
|Year of development:||1996|
|Supported meter models:||Philips PM-6667 and PM-6668.|
Same excellent accuracy as the original software|
Collect readings on the computer
Stand alone Scaling and Offset calculations
Tape speed and deviation measurements
Manual operation through one-key menu
I got lucky and was able to buy myself a nice little second hand frequency counter from an old colleague, a Philips model PM-6668.
There was only one little problem though: the display had become completely black, something that I had witnessed with a similar counter before.
Fortunately I was able to obtain a new display so I could restore the counter to its original glory.
However that was quite a while ago. I've got some questions about the availability of this display in the past. The best I can do is give you the original Philips part number though, which is 5322 130 94021. I can't help you any further in obtaining a new display for this marvelous counter, sorry about that.
What is so special about this little counter then?
The answer is simple: its resolution is independent of the measured frequency.
This means that frequencies down to 10Hz are still measured with a 7 digit resolution, just like frequencies of 1GHz!
How is this possible without increasing the gate time to an unacceptable duration? Well by using a revolutionary new way of counting called reciprocal frequency counting. Remember that the counter was designed in the late seventies, when microprocessors were still rare and expensive.
Traditional counters used a fixed and accurately timed gate time of let's say 1 second. All incoming pulses are counted during this gate time and the result is automatically the measured frequency given in Hz. Obviously this causes a few problems mainly affecting low frequency accuracy. A 10 Hz signal will generate from 9 to 11 counts if observed unsynchronized during such an inflexible gate time. Not only has the counter a very low resolution of only 2 digits, there is also an error of ± one digit. This uncertainty is 10% of the displayed frequency! Thus you can hardly call this a measurement, it's more like an indication.
Reciprocal frequency counting is done completely different. The gate time is no longer fixed or accurately timed. The gate is now opened by the leading edge of the incoming frequency and is closed approximately 1 second later, again at leading edge of last pulse to be counted from the incoming frequency. This way we eliminate the traditional ±1 count error. During the 1 second gate time we count the number of incoming pulses and the number of pulses originating from an accurate reference oscillator. After some calculation this will result in the applied frequency with a resolution that is only influenced by the resolution of the reference oscillator and the duration of the gate time.
A more detailed description of the reciprocal frequency counting method can be found in the description of the original PM-6668 software.
Although I keep talking about the PM-6668, this description also applies to its little brother the PM-6667. The only difference between the two models is that the PM-6668 has an extra HF input, allowing it to extend its maximum frequency up to 1GHz.
So far I have been talking about the standard features of the PM-6668. We have to add some new features to the counter to justify the complete project description that I'm writing here. Here is a list of all the new features that were added to the standard PM-6667 / PM-6668 models by this project:
In order to add these extra features we have to take out the original processor and replace it with our own.
I've used the Siemens SDA30C163 as main processor here, just because it was available to me for free.
This processor is originally intended to be used in European TV sets, I'm not sure if you can find the processor elsewhere in the world.
You might try Ebay to find a surplus source if you're interested in building this project.
The processor contains the ever so popular 8051 core, expanded with some extra's like 1kb of internal RAM, PWM, and some analog inputs. Apart from the extra RAM no other extra features of the processor are being used by this project.
Before I could build this project I had to know how reciprocal frequency counting actually works.
What better teacher is there than the original software?
I read the ROM contents of the counter using the 8049 Spy, and disassembled it completely until every program byte was understood.
That was easy enough for it was just 1kB in size.
Equipped with this knowledge I was able to translate the original functionality of the counter to the new processor core.
And after that it was only a matter of adding the new features.
It took me about 72 hours to complete the project, not counting the time to disassemble the original software and describing the project on this site. During these 72 hours I had to start the assembler 734 times to complete the 9.5kB long program.
Interested? Use the the navigation keys in the top right hand corner of the page to read more.