This is only a preview of the January 2013 issue of Silicon Chip. You can view 19 of the 96 pages in the full issue, including the advertisments. For full access, purchase the issue for $10.00 or subscribe for access to the latest issues. Items relevant to "The Champion Preamp/Audio Amplifier Module":
Items relevant to "Garbage & Recycling Reminder":
Items relevant to "A 2.5GHz 12-Digit Frequency Counter, Pt.2":
Purchase a printed copy of this issue for $10.00. |
Building the . . .
Pt.2: By JIM ROWE
2.5GHz 12-digit
frequency counter
Last month, we explained how our new 12-digit 2.5GHz counter
works and gave the full circuit details. This month, we describe
the construction and detail the simple setting up procedure.
M
OST OF THE construction work
involves building the two PCB
assemblies used in the counter. Before
building these boards however, note
that we’ve made a few changes to the
circuit published last month in order
to achieve optimum performance.
This involves a few component value
changes plus the addition of two extra
components.
The details of these changes are
given in the panel titled “Circuit
Changes” (towards the end of this article). This panel should be read carefully before beginning construction.
As mentioned in Pt.1, most of the
parts are fitted on a 225 x 175mm main
PCB which mounts in the lower half of
the case. The rest of the components
are for the multiplexed display and
these go on a second 200 x 50mm dis68 Silicon Chip
play PCB mounted vertically behind
the front panel. The two boards are
linked by a short 20-way ribbon cable
fitted with IDC connectors.
Display PCB
Start the assembly by building the
display PCB – see Fig.6. This carries
the 7-segment displays, the LEDs,
IC25 & IC26 and all the resistors and
capacitors on the front. The other side
carries 23 SMD Mosfets (Q8-Q30) plus
connector CON6 which is the header
for the IDC cable.
The 23 SMD Mosfets on the rear of
the PCB should be installed first. Note
that you must use 2N7002 N-channel
devices for Q8-Q22 and NX2301P Pchannel Mosfets for Q23-Q30. Don’t
mix them up, or you’ll get some very
strange results!
You’ll need a soldering iron with a
fine tip, a pair of tweezers and preferably a magnifying lamp for this job.
Start by applying some solder to one
of the PCB pads and then, using the
tweezers, slide the device into place
while heating the solder on the pad.
That done, check that the part is correctly positioned. If not, reheat the
solder and gently nudge it into place.
The remaining two leads can then
be soldered. If you get a solder bridge,
simply use desoldering braid (or solder
wick) to clean it up. A dab of no-clean
flux paste on the bridge beforehand
will make it disappear a lot more
quickly and easily.
Repeat this procedure for all 23 SMD
Mosfets, taking care to fit the correct
type at each location. Once these are
in place, fit CON6 then turn the PCB
siliconchip.com.au
PCB. The two 100nF MMC capacitors
and the 100µF electrolytic can then go
in, followed by the three 4-digit LED
displays, LEDs 1-11 and ICs 25 & 26.
Take care with the orientation of these
devices (note: the displays must be
orientated with the decimal points at
lower right).
19
20
7FB5641AB
27
27
27
27
7FB5641AB
DISP1
27
27
27
27
TOP
6
7
Q8
6
7
Q20
A
1
A
K
C 2012
04111122
A
LED7
HI-RES COUNTER
DISPLAY BOARD
BOTTOM
DISP1
DISP2
1
12
6
7
1
2
K4 g c dp d e
Q21
6
7
1
12
a K1
A
LED8
1S
b K3 K2 f
K
1
2
CON6 (UNDER)
EXT TB
PERIOD
LED5 LED6
K
CHAN B
12
a K1
K4 g c dp d e
b K3 K2 f
K
CHAN A
74HC240
LED4
04111122 A
IC25
1
Q9
CON6
A
LED9
10S
DISP2
220
K
K
A
19
20
LED10
100S
27
22111140
2102 C
RET NU O C SER-I H
DRA O B YALPSID
M OTT O B
220
12
100nF
Q10
7FB5641AB
Q11
+
Q12
DISP3
K
1
12
6
7
1
12
a K1
K
K4 g c dp d e
b K3 K2 f
A
LED11
1000S
27
6
7
IC26
+
S
Q23 Q24 Q25 Q26
DISP3
4514B
K LED3
A
Hz
K LED2
A
LED1
MHz
K
A
220
220
220
Q27
Q28
Q29
Q30
27
Fig.6: follow these parts layout diagrams to build the display PCB, starting with the SMD transistors (Q8-Q30) and IDC connector CON6
on the back of the board. Take care with the orientation of the LED readouts and note that IC25 & IC26 face in opposite directions.
(BACK OF BOARD)
Q22
27
Q13
27
27
27
27
27
27
27
27
(FRONT OF BOARD)
27
Q14
220
220
Q16
8 OR 9x10k
27
Q17
C
27
888888888888
100 F
Q15
100nF
47 a
47 b
47 c
47 d
47 e
47 f
47 g
47dp
Q18
siliconchip.com.au
Q19
over and solder its pins to the pads on
the front. Make sure that CON6 sits
flush against the PCB before soldering.
The next step is to install the resistors on the front of the PCB, followed
by the 8 x 10kΩ SIL resistor array. Be
sure to fit the latter with its common
(C) pin towards the lefthand edge of the
The LEDs must be mounted with
their bodies 10mm above the PCB, so
that they will later protrude through
their corresponding holes in the front
panel. This can be done by sliding a
10mm-high strip of cardboard between
the leads when soldering each device
into position.
January 2013 69
NI 1RMT
NOITRESOLUTION
ULOSER HGIH
HIGH
RETNUOC
COUNTER
DRBOARD
AOB NIAM
2102 C
MAIN
121111121
140 bot
C 2012pot 0411
Q7
NX2301P
Q6
NX2301P
4,3D TSR
IC4 MC10EL32
2,1D TSR
1
100nF
12
11
100nF
18
19
IC3
100nF
MC10E016
25
26
1
100nF
10nF
4
100nF
5
10nF
IC2
1 1
RFC3
100nF
MC12095
s˚WS ESNES
1nF
47
FF ETAG NIAM TES
10nF
The view shows the SMD parts inside
the red box of Fig.7. Ignore the resistor
just below IC3; this is a modification to
our prototype and the final PCB now
has this on the top side.
1nF
1
IC1
88t
88t
10nF
100
D2
100
D1
(CON2)
S9
(CON1)
S8
S7
S6
Fig.7: follow this layout diagram to mount the SMD parts on the rear of the main
PCB (ie, the parts inside the red box and the red circle). Take care to ensure that
the transistors, ICs and RFC3 are correctly orientated and note the bevelled end
on one of IC1’s leads, indicating pin 1.
When all of these components are in
place, the display PCB can be placed
aside while you work on the main PCB.
Main PCB assembly
Like the display PCB, the main
PCB has all of the SMD components
mounted on one side (ie, the underside) and all of the leaded components
on the top side. Figs.7 & 8 show the
assembly details.
As before, it’s best to install the SMD
parts on the underside first. Most of
these SMDs are located inside the red
Table 1: Capacitor Codes
Value
470nF
100nF
10nF
1nF
47pF
39pF
27pF
µF Value
0.47µF
0.1µF
0.01µF
0.001µF
NA
NA
NA
IEC Code
470n
100n
10n
1n
47p
39p
27p
70 Silicon Chip
EIA Code
474
104
103
102
47
39
27
rectangle at lower left. The only exceptions are transistors Q6 and Q7, which
are located inside the red circle nearer
the centre of the board – see Fig.7.
Take particular care when installing
IC1, IC2, IC3 & IC4 to ensure that they
are correctly orientated. In each case,
pin 1 is identified by an adjacent “dot”
in the plastic body of the device. IC3
also has a bevelled corner, while IC1
has a bevelled end on one lead.
Once again, you’ll need a soldering
iron with a very fine tip, preferably one
that is earthed to avoid electrostatic
damage when you are soldering in the
active components (IC1-IC4, Q6 & Q7
and D1 & D2). The iron should also
be temperature controlled, so you can
make joints quickly without risking
heat damage to the component.
The soldering procedure is much
the same as for the SMD Mosfets on
the display PCB. In each case, you can
hold the device in place using tweezers
(or even a wooden toothpick) while
you make the first solder joint, after
which the SMD should stay in position
S5
while you
solder S3
the remaining
leads.
S4
S2
However, if the device has eight or
more leads, then it’s best to solder two
diagonally opposite leads initially. The
device can then be checked for correct
alignment before the remaining leads
are soldered.
Don’t worry too much if you accidentally bridge two or more of the
leads of IC2, IC3 or IC4 together when
you’re soldering them in place. In fact,
this is almost inevitable. As before, it’s
simply a matter of using the tip of the
iron to push some fine desoldering
braid against the bridged leads. The
braid will “suck up” the excess solder
forming the bridge, while still leaving
the leads soldered to the PCB pads
underneath.
By the way, don’t forget to install
RFC3 which is also an SMD component. It’s fitted in the same way as the
SMD ICs and must also be correctly
orientated (ie, pin 1 at top right).
When you have soldered all of the
SMDs in place (including Q6 & Q7),
the PCB can be flipped over and the
leaded components installed. Fig.8
shows the details.
Begin by installing the low-profile
parts first, such as the resistors, diodes
and zener diodes. The 10 PC stakes can
then be installed at the test points (TP).
TP2 is required for calibration, while
siliconchip.com.au
100nF
+
REG1
7805
100nF
S2
10k
100nF
1
CHAN A
TPG
ICSP
5711
S3
CHAN B
27pF
2
1
S4
S5
INT/EXT
TIMEBASE
TO DISPLAY PCB
FREQ/PERIOD
CON5
20
19
RST D3,4
RST D1,2
S6
10S GATE
S7
100nF
100nF
100nF
100nF
1S GATE
100nF
IC15 74AC00
SET MAIN GATE FF
100nF
100nF
SEL CHAN A
FREQ* /PRD
IC10 4093B
S8
100S GATE
4518B
Q4
BC558
TP6
VR1
1k
360
360
180
470
470
470
TPG TP3
IC18 74HC00
IC12 74AC10
IC11 4012B
IC9
S9
1000S GATE
4518B
+
+
100nF
2N5485
4093B
BC558
Q1
CHAN A IN
CON1
100k
910k
+
75
470nF
47pF
D4
D3
4.7 F
ZD1
5711
5711
220k
10M
39pF
4060B
VC2
1k
CON3
EXT TB IN
TP1
TPG
TPG
CHAN
B IN
56
100nF
CON2
100nF
Q2
BC558
120
470
470
TP4
HIGH RESOLUTION
COUNTER
MAIN BOARD C 2012
04111121 top
IC6
X2
6-30pF
D6
32768Hz
TP5 TPG
Q5
BC558
47 F
Q3
680
470
82
470
IC17 74AC74
IC13 74AC00
IC7
IC8
100nF
SEL CHAN B
1MHz
TP2
D5
4148
22k
100nF
Fig.8: the parts on the top side of the main PCB should be installed only after the SMD parts have been installed on the underside. Be sure to fit the correct
IC at each location and make sure that all polarised parts are correctly orientated.
S1
POWER
2200 F
47 F
D8
2.2k
VC1
6-30pF
8.00MHz
X1
TMR1 IN
74HC161
74HC244
IC19
5819
100nF
REMOVE THESE LINKS FOR LK1
IN-CIRCUIT PROGRAMMING,
REPLACE FOR OPERATION LK2
74HC373
PIC16F877A
IC22
39pF
100nF
SENSE SW’s
IC23
IC24
74HC244
IC21
74AC163
IC14
IC16 74HC160
4518B
IC20
D7
100nF
100k
27
100nF
100nF
100nF
100k
EXT/INT TB
1k
10 F
27
100nF
100nF
100nF
10nF
100nF
100nF
10nF
3.3V
CON4 9-12V DC IN
470
IC5 MC10116P
1k
10nF
10nF
470
10nF
100nF
430
4148
51
siliconchip.com.au
51
1s
51
100s
RFC2 47 H
10s
RFC1 47 H
1000s
January 2013 71
17
9mm
DIAMETER
24.5
Front & rear panels
16.5
13mm DIAMETER
199
Fig.9: this drilling template for the rear panel can either be copied or
downloaded in PDF format from the SILICON CHIP website and printed
out. Start each hole using a small pilot drill, then carefully enlarge it to
the correct size using a tapered reamer.
72 Silicon Chip
the remaining test points will make it much easier to troubleshoot
the unit later on if necessary.
Trimpot VR1 can now go in (bottom right), followed by RF
chokes RFC1 & RFC2 and then the non-polarised capacitors
(including trimcaps VC1 and VC2). Follow with the polarised
electrolytic and tantalum capacitors, taking care to fit them with
the correct polarity.
Next, install connectors CON1-CON4, then pushbutton switches
S2-S9, power switch S1, the 6-pin ICSP header and the two 2-pin
headers for LK1 and LK2. CON5, the 20-pin DIL connector, can
then be fitted.
Crystals X1 & X2 are next. X1 is located just to the right of IC22
(the PIC micro), while X2 is located just below VC2 at upper right.
They can be fitted either way around.
Once, they’re in, install transistors Q1-Q5 and regulator REG1
(7805). The latter is mounted horizontally on the top of the PCB,
with a 19mm square finned heatsink underneath to help dissipate
heat. To install REG1, first bend its leads down through 90° 6mm
from its body, then secure both it and the heatsink to the PCB using an M3 x 6mm machine screw and nut. Do the nut up tightly
before soldering the regulator’s leads to the PCB.
The main PCB assembly can now be completed by installing all
the DIL ICs, beginning with IC5 at lower right and then working
through them in roughly numerical order until you reach IC24 at
upper left. Be sure to select the correct IC for each position and
make sure it is orientated correctly and sits all the way down on
the PCB before soldering its pins.
By the way, apart from the PIC micro, it’s NOT a good idea to
use DIL sockets for any of the ICs, in the interests of performance
and long-term reliability. Instead, they should all be soldered
directly to the PCB pads, like the SMD components underneath.
Just take the usual precautions to avoid damage from overheating or electrostatic discharge. Use an earthed iron tip and always
solder each IC’s Vss and Vdd pins (usually 7 & 14 or 8 & 16, or
10 & 20, etc) first.
As stated, the exception is the PIC micro and this should be
installed in a 40-pin IC socket. That way, if you ever have to
change it, it will be easy to remove.
Once all the ICs are in place, the next step is to fit links LK1
and LK2 provided your PIC has already been programmed (eg, if
purchased from the SILICON CHIP Partshop). If not, you will first
have to program it via the ICSP connector (ie, with LK1 & LK2 out).
The easiest way to do this is to use a Microchip PICkit3 programmer, driven from one of your PC’s USB ports and using
Microchip’s MPLAB IDE (v8.85 or later) to control the programming operation. The firmware file required, 0411112B.hex, is
available for free download from the SILICON CHIP website.
Once you have programmed the PIC, be sure to fit the jumper
shunts to LK1 and LK2, so that the PIC will be able to control
the counter properly when it’s fully assembled and powered up.
A standard plastic instrument case measuring 256 x 189 x
83mm is used to house the assembled PCBs. A separate PCB
(code 04112123) is used for the front panel. This is available
from the SILICON CHIP Partshop and is supplied with all holes
drilled (including the display cutout) and screened lettering for
the labels. This not only saves you from having to accurately drill
the 26 holes and make the display cut-out yourself but also gives
a professional finish.
Alternatively, if you purchase a complete kit, a punched plastic
panel with a printed label will be supplied.
By contrast, the rear panel has just two holes and these can
siliconchip.com.au
This is the view inside the completed 2.5GHz frequency counter, from the rear. All the parts fit on the main and
display PCBs and these are linked together by a short IDC cable (see Figs.10 & 11). Power comes from a 9-12V DC
1A plugpack supply.
be drilled using the template shown
in Fig.9. This template can either be
copied direct from the magazine or it
can be downloaded in PDF format from
the SILICON CHIP website and printed
out. Use a small pilot drill to start the
holes, then carefully ream them to size
using a tapered reamer.
Once these holes have been made,
download and print out the rear-panel
label from the SILICON CHIP website.
This can then be laminated and attached to the rear panel using silicone
adhesive, after which the holes can
be cut out using a sharp hobby knife.
The next step is to fit a 160 x 30mm
piece of 1mm-thick clear acrylic sheet
over the front-panel display cut-out.
This should be fitted from the rear
and can be held in place by applying
a thin smear of silicone sealant around
the outside edge before attaching it to
the panel.
The front and rear panels can now
be attached to the main PCB. That’s
done by first removing the mounting
nuts from CON1 & CON3. Each panel is
siliconchip.com.au
M3 x 5mm
SCREWS
M3 x 12mm
TAPPED
SPACERS
M3 x 6mm
SCREWS
DISPLAY PCB
IDC RIBBON
CABLE
CON1
CON6
CON5
CON2
FRONT
PANEL
MAIN PCB
BOTTOM OF CASE
Fig.10: the mounting details for the two PCBs. The display PCB is attached
to the front panel using M3 x 12mm tapped spacers and eight M3 screws
(note the different lengths for the screws at each end of the spacers). This
PCB assembly is then connected to the main PCB via a 20-way IDC cable
(see Fig.11 for details).
January 2013 73
Parts List
1 plastic instrument case, 256 x
189 x 83mm
1 9-12V DC 1A plugpack
1 front panel PCB, code 04111123
1 95mm length of 20-way IDC
ribbon cable
2 20-way IDC line sockets
6 4G x 6mm self-tapping screws
4 rubber self-adhesive feet
1 160 x 30mm clear acrylic sheet
(1mm thick)
Main PCB
1 PCB, code 04111121, 225 x
175mm
1 8.00MHz crystal, HC-49 (X1)
1 32.768kHz crystal, DT38 case
(X2)
2 47µH RF chokes, axial type
(RFC1,RFC2)
1 wideband SHF choke, SMD type
(Mini-Circuits ADCH-80A+)
(RFC3)*
1 40-pin 0.6-inch DIL IC socket
1 small finned TO-220 heatsink,
19mm square
1 SPDT mini toggle switch, 90°
PCB-mount (S1)
8 SPST micro tactile switches, 90°
PCB-mount with 6mm or longer
actuators (S2-S9)
2 BNC sockets, PCB-mount
(CON1, CON3)
1 SMA reverse PCB socket, 90°
(CON2)*
1 2.5mm concentric DC socket,
PCB-mount (CON4)
1 6-pin SIL header (ICSP
connector)
1 20-way IDC locking header
(CON5)
2 2-pin SIL headers
2 2-way jumper shunts
10 1mm-diameter PCB stakes
1 M3 x 6mm machine screw
1 M3 nut
1 1kΩ mini horizontal trimpot
(VR1)
Semiconductors
1 ERA-2SM+ wideband monolithic
amplifier (IC1)*
1 MC12095 ECL microwave
frequency divider, SOIC (IC2)*
1 MC10E016 ECL synchronous
mod-16 UHF counter, PLCC
(IC3)*
1 MC10EL32 ECL UHF flipflop,
SOIC (IC4)*
74 Silicon Chip
1 MC10116P ECL triple line receiver
(IC5)*
1 4060B CMOS counter (IC6)
3 4518B CMOS dual BCD counters
(IC7,IC9,IC20)
2 4093B CMOS quad Schmitt
NANDs (IC8,IC10)
1 4012B CMOS dual 4-input NAND
(IC11)
1 74AC10 high-speed CMOS triple
3-input NAND (IC12)*
2 74AC00 high-speed CMOS quad
2-input NANDs (IC13, IC15)*
1 74AC163 high-speed CMOS
synchronous mod-16 counter
(IC14)
1 74HC160 CMOS synchronous
BCD decade counter (IC16)
1 74AC74 high speed dual D-type
flipflop (IC17)*
1 74HC00 CMOS quad 2-input
NAND (IC18)
2 74HC244 CMOS octal buffer/line
drivers (IC19,IC21)
1 PIC16F877A microcontroller
programmed with 0411112A.hex
(IC22)
1 74HC373 CMOS octal latch (IC23)
1 74HC161 CMOS synchronous
mod-16 counter (IC24)
1 7805 +5V regulator (REG1)
4 BC558 PNP transistors (Q1,Q2,
Q4,Q5)
1 2N5485 VHF junction FET (Q3)*
2 NX2301P P-channel Mosfets
(Q6,Q7)*
1 3.3V 1W zener diode (ZD1)
2 1PS70SB82 very high speed
Schottky diodes (D1,D2)*
3 1N5711 Schottky diodes (D3,D4,
D8)*
2 1N4148 signal diodes (D5,D6)
1 1N5819 1A Schottky diode (D7)
Capacitors
1 2200µF 25V RB electrolytic
1 47µF 16V tantalum
1 47µF 16V RB electrolytic
1 10µF 16V RB electrolytic
1 4.7µF 25V tantalum
1 470nF MKT
2 100nF MKT
6 100nF X7R MMC 1206 SMD*
25 100nF through-hole MMC
4 10nF X7R MMC 1206 SMD*
5 10nF through hole MMC
2 1nF C0G MMC 1206 SMD*
2 47pF NP0 disc ceramic
1 39pF NP0 disc ceramic
1 27pF NP0 disc ceramic
2 6-30pF mylar mini trimcaps
(VC1,VC2)
Resistors (0.25W, 1%)
1 10MΩ
2 360Ω
1 910kΩ
1 180Ω
1 220kΩ
1 120Ω
3 100kΩ
2 100Ω 0805 SMD*
1 22kΩ
1 82Ω
1 10kΩ
1 75Ω
1 2.2kΩ
1 56Ω
3 1kΩ
3 51Ω
1 680Ω
1 47Ω 0805 SMD*
9 470Ω
2 27Ω
1 430Ω
Display PCB
1 PCB, code 04111122, 200 x
50mm
1 20-way IDC locking header
(CON6)
4 M3 x 12mm tapped Nylon spacers
4 M3 x 6mm machine screws
4 M3 x 5mm machine screws
Semiconductors
3 7FB5641AB quad 7-segment
blue LED displays (DISP1,
DISP2,DISP3) (Futurlec)
1 74HC240 CMOS octal buffer/line
driver (IC25)
1 4514B CMOS 1-16 latching
decoder (IC26)
15 2N7002 N-channel Mosfets
(Q8-Q22)*
8 NX2301P P-channel Mosfets
(Q23-Q30)*
4 3mm red LEDs (LED1, LED2,
LED5, LED7)
7 3mm green LEDs (LED3, LED4,
LED6, LEDs8-11)
Capacitors
1 100µF 16V RB electrolytic
2 100nF through-hole MMC
Resistors (0.25W, 1%)
7 220Ω
8 47Ω
23 27Ω
1 10kΩ SIL resistor array, 8x or 9x*
Note: the three PCBs (04111121,
04111122 and 04111123) and a
programmed PIC microcontroller
are available from the SILICON CHIP
Partshop.
Note: parts marked with a red asterik
(*) are available from element14 and/
or RS Components.
siliconchip.com.au
Another view of the completed frequency counter, this time from the front. The main PCB assembly is attached to
the base of the case using six self-tapping screws that go into integral moulded pillars.
then fitted in place and the connector
mounting nuts re-fitted. The rear panel
simply fits over CON3, while the front
panel not only fits over CON1 but also
over CON2 and switches S1-S9.
Do the mounting nuts up finger-tight
to hold things together, then lower the
entire assembly into the bottom half
of the case, with the panels slipping
down inside the vertical moulded
channels. Once it’s in place, the assembly can be fastened down using six
4G x 6mm self-tapping screws which
go into integral pillars moulded into
the case bottom and the connector nuts
firmly tightened.
Mounting the display PCB
With the main assembly in place,
you’re now ready to mount the display
PCB. This is attached to the rear of the
front panel using four M3 x 12mm
tapped spacers and eight machine
screws – see Fig.10. Note that M3 x
5mm screws are used to secure the
spacers to the front panel, while M3
x 6mm screws are used to secure the
display PCB to these spacers.
siliconchip.com.au
Fig.11: follow this
diagram to make
up the 20-way IDC
cable. The cable
is then used to
link the main and
display PCBs as
shown in Fig.10.
65mm
95mm LENGTH OF 20-WAY IDC RIBBON CABLE
(15mm LOOP IN CONNECTOR AT EACH END)
The counter assembly can now be
completed by making up and fitting
the short IDC ribbon cable which links
the two PCBs via CON5 and CON6.
Fig.11 shows how the IDC cable
is made up. All you need is a 95mm
length of 20-way flat ribbon cable plus
the two 20-way IDC connectors. A
small bench vyce can be used to clamp
the connectors in position if you don’t
have an IDC crimping tool.
Don’t forget to fit the locking bar to
each connector after crimping. The
completed IDC cable is then used to
link the two PCBs, as shown in Fig.10.
Set-up and adjustment
With the cable in place, the counter
can now be powered up and adjusted.
Begin by connecting a 9-12V 1A DC
plugpack supply to CON4 and then
switch on using power-switch S1. You
January 2013 75
Circuit Changes
Since publication of Pt.1 last month, we’ve changed a few component values
and added two extra components, in order to achieve the highest possible performance from the counter. The details are as follows:
(1) The capacitor in parallel with the 100kΩ resistor in the channel A input divider
has been increased from 22pF to 47pF.
(2) The 100μF electrolytic capacitor in parallel with the 10nF capacitor at Q3’s
source has been changed to a 47μF tantalum.
(3) The resistors connecting pins 2 & 3 of IC5a to ground have been changed
from 470Ω to 360Ω.
(4) The resistor between pins 15 & 4 of IC5 has been changed from 1kΩ to 680Ω.
(5) A 100nF MKT capacitor has been added as a supply bypass between pins 1
and 16 of IC5 and ground.
(6) A 56Ω resistor has been added between pin 4 of IC2 (and pin 27 of IC3) and
the +3V (VL) supply line of the channel B prescaler. This is not shown in the photo
of the prototype but is included in the final version of the PCB.
(7) To make it easier for the PIC’s clock oscillator to be adjusted to exactly 8.000MHz
with almost any crystal, the NP0 ceramic capacitor between pin 14 of IC22 and
ground has been increased from 22pF to 39pF. Similarly, the capacitor in parallel
with trimcap VC1 has been increased from 18pF to 27pF.
(8) Tests with a number of 32.768kHz crystals in the internal timebase oscillator
(IC6) have shown that, in some cases, it may be necessary to increase the fixed
NPO ceramic capacitor from 39pF to 47pF, in order to achieve calibration.
should immediately be greeted with
the message “SILICON CHIP” on the
7-segment LED displays. In addition,
the following indicator LEDs should
light: LED4 (CHANNEL A), LED8 (1s
GATING) and LED2 (FREQUENCY Hz).
The 7-segment displays should now
show the initial message for a second
or so but then change to display just
“0.” on the extreme righthand digit,
indicating that there is currently no
input to channel A of the counter.
If the display shows something
other than “0.”, this simply means
that trimpot VR1 needs adjustment.
In that case, use a small screwdriver
to tweak VR1 in one direction or the
other, until you get a zero display.
Normally, this will be with VR1 set to
about its midway position.
Next, check the DC voltage at the
output (rearmost) pin of REG1. It
should be very close to +5.00V. You
should also find this voltage at pins 1
& 16 of IC5, at TP3 and also pins 11 &
32 of PIC micro IC22.
Frequency calibration
Finally, you need to make two more
adjustments involving trimcaps VC1
and VC2, which are used to calibrate
the counter’s internal timebases. VC1
adjusts the PIC micro’s main 8MHz
clock frequency from which the “1μs”
period counting timebase pulses are
derived, while VC2 adjusts the freYou’ll need the GPSBased Frequency
Reference (SILICON
CHIP, March-May
2007) to accurately
calibrate the unit (or
some other accurate
1pps signal source).
We also intend to
describe a low-cost
GPS 1pps reference in
the near future.
76 Silicon Chip
quency of the internal 1Hz timebase.
To make these adjustments, you’ll
need a 1pps (ie, 1Hz pulses) signal
from an accurate source like the GPSBased Frequency Reference (SILICON
CHIP, March-May 2007). Here’s the
procedure:
Switch the counter into its Period
mode by pressing S4 and holding it
down for half a second or so until
LED6 lights. Then connect the accurate
1Hz signal from your GPS source to
the counter’s channel A input. This
should give you a display of close
to “1000000”, which is the period of
the 1Hz signal in microseconds. If the
reading is slightly above or below this
figure, carefully adjust VC1 until the
reading is “1000000”.
The 1MHz “period clock” that
you’ve just calibrated is now used to
adjust VC2, to calibrate the counter’s
internal timebase. To do this, press
S4 again and hold it down until LED6
goes out, showing that the counter has
switched back to frequency mode.
Next, disconnect the GPS 1Hz signal
from the Channel A input and instead
connect a short coax test lead with
insulated clips at its free end. Then
connect the “live” clip of this cable to
TP2 at the rear centre of the counter’s
main board (ignore the “earthy” clip).
After making sure that LED7 is off
(indicating that the counter is using its
internal timebase), you should again
get a reading that’s close to “1000000”,
corresponding to the 1MHz “period
measurement” clock. If the reading
you get is slightly above or below
this correct figure, carefully adjust
VC2 until the reading does become
“1000000”.
This is using the default gating time
of 1s, by the way. If you wish, you
can switch to the 10s gating time by
pressing S7 until LED9 lights. This
will allow you to adjust VC2 until you
get a reading of “1000000.0”, which
is about as accurate as it’s possible to
adjust the internal timebase.
Your counter will now be correctly
set up and calibrated. All that remains
is to fasten the top half of the case in
position and the counter is ready for
use.
Finally, if you don’t have access to
the GPS-Based Frequency Reference,
just set VC1 & VC2 to mid-range for
the time being. We plan to describe a
low-cost GPS-based 1pps reference in
the near future, so this can be used for
SC
calibration at a later date.
siliconchip.com.au
|