Counter
Counter
A simple RF/Microwave
frequency counter
I decided to design a simple, easily
reproducible counter around a PIC
16F876A. The basic counter range is
extended to at least 180MHz using two
74Fxx devices. A divide-by-64
prescaler is used for higher
frequencies up to at least 4.5GHz. All
results of the measurement are shown
on an inexpensive, 2x16 alphanumeric
LCD module with large characters. A
block diagram of the counter is shown
in Fig 1.
gate timing.
1.
The counter
The whole counter design is based on a
16F876A PIC microcontroller. This
includes several peripherals but just a
132
Fig 5: Picture of the track side of the counter PCB with SMD compoenets
fitted, note the 0R links.
remaining PIC peripheral used in this
project, the A/D converter. The latter has
a resolution of 10 bits, but only the most
significant 7 bits are used. These drive a
bar indicator on the LCD module with 36
segments, corresponding to an input
voltage between zero and 1.4V (full
scale) on the analogue inputs RA0 (MW
mode) or RA1 (RF mode). The operating
mode is selected with switches driving
the digital inputs RA4 and RA5.
The main counter module is built on a
single sided printed circuit board
measuring 60mm x 60mm. Good quality
2.
Front ends
The counter is equipped with three
different front ends. The front ends are
built as separate modules to allow an
easy interchange as better components
(prescalers) become available or new
requirements show up.
2.1 Microwave prescaler
The microwave prescaler front end is
designed around the NEC PB1505 chip,
the circuit diagram is shown in Fig 6.
This counts up to 4.9GHz and unlike the
products from some other manufacturers
it is very reliable. An ERA-2 MMIC is
used to boost the input sensitivity and
provide some protection for the
PB1505. The ERA-2 can accept input
signal levels up to +15dBm (30mW). A
6dB attenuator behind the ERA-2
prevents saturating the PB1505.
A 33k resistor can be used to kill the
self oscillation of the PB1505 around
2.6GHz, but this resistor also adversely
affects the sensitivity and the maximum
135
3.
Assembly
Fig 10: PCB layout for the RF front
end.
The TTL front end is built on a single
sided printed circuit board measuring
20mm x 60mm. The PCB layout is
shown in Fig 13 and the component
layout in Fig 14. The input cable is
soldered directly to the PCB. Input
protection is provided by the 470
resistor and the zenner diodes inside the
BF998 (breakdown voltage between 8V
and 12V). Further protection could be
obtained by additional zenner diodes,
however the latter may include a large
capacitive loading (more than 100pF).
136
4.
Operation
Fig 13: PCB layout for the TTL front
end.
The counter is installed in a box made of
aluminium sheet shown in Fig 16. The
bottom is made from 1mm thick
aluminium sheet, the cover is made from
0.6mm thick aluminium sheet and the
LCD is protected by a small piece of
plexiglass. The internal width is 200mm,
depth 100mm and height 45mm.
The RF connectors, switches and LCD
module are installed on the front panel.
The power supply connector is installed
on the rear panel.
137
138
Fig 17: The counter in the microwave mode with a gate time of 640ms
corresponding to a resolution of 100Hz.
even worse results!
to a frequency counter.
Probes
5.
6.
References
[1] 13GHz prescaler, Zeljko Bozic, VHF
Communications Magazine, 2/2006, pp
89 94
[2] Matjaz Vidmar web site for
frequency counter
http://lea.hamradio.si/~s53mv/counter/his
tory.html