Back when we worked with a Brushless motor, we used a phase-locked loop (PLL) to control its speed and saw how simple logic circuits could deliver exceptionally stable operation. Now we’ll build on the same principles and look at the 74163 synchronous TTL binary counter/divider. It lets us adjust the operating frequency of free-running oscillators for radio, TV, or any application that needs a PLL when the signal compared by a 4046 is far removed from the reference frequency—typically set by a quartz crystal. This is an ambitious project, so let’s get started.
An oscillator whose frequency can be varied across a defined range is known as a free-running oscillator. A simple L–C tank circuit is one example, as is any oscillator designed to allow frequency adjustment. A familiar analog example is the tuning control on a radio or television receiver: the frequency of the local oscillator changes so you can select the station you want to hear or watch. Frequency stability is not critical in every case. But for radio and TV transmitters, and other applications governed by frequency regulations, it is essential. Even a small drift can impair operation or require constant manual adjustment. For decades, the phase-locked loop has been one of the most widely used ways to address this problem.
Integrated circuits made specifically for PLL operation in the higher radio bands can be expensive and hard to find. Discrete logic, however, lets us build a PLL to suit our needs. Until recently, the frequency limits of conventional TTL and CMOS made PLL designs difficult without prescalers—complex, costly components that could also be hard to source. Today, low-cost LVC and ALVC technology makes it practical to use Bi-CMOS circuits at frequencies up to 200 MHz. Earlier designs could barely exceed 40 MHz; even the best-case 74Sxx parts reached only 100 MHz. With this newer logic, it is now straightforward to build a receiver or transmitter for FM at 88 MHz–108 MHz, or for much of the VHF band, using the continually improving TTL–CMOS family. The key component in this project is the 74LVC163. We’ll begin with a test circuit.
Because the 74163 is synchronous, the clock pulse on pin 2 does not pass through and trigger one flip-flop after another. Instead, every element receives the same pulse simultaneously. This avoids the propagation delays caused by successive state changes in the flip-flops and their internal circuitry. Compared with asynchronous counters, synchronous counters can divide faster, allowing higher operating frequencies and more precise division. The device is also programmable: switches on pins 3–6 select a division value that can be changed easily, up to a modulus of 16. When the programmed count is reached, carry pin 15 resets the system. It can also be connected to other ICs to increase the division modulus, or used as the final output, as in today’s simple example.
If no division is selected, the output is zero; at least one input, D0–D3, must be active for the circuit to operate. Add the “+1” shown in the diagrams to the DSW1 switch setting. A simulation image illustrates the result: frequency meters show the output for different switch settings, while an oscilloscope traces the pulse from the Carry Out, or Terminal Count, pin after the input frequency has been divided by ten. With a programmable divider that can be expanded by cascading devices, we can turn to a simple oscillator for practical experiments. The oscillator is efficient and uses a small group of logic gates whose imperfections become useful, producing a versatile, straightforward voltage-controlled oscillator (VCO).
HCMOS ICs can operate comfortably with supply voltages from 2 to 6 volts. Their speed is much higher at 6 volts than at 2 volts. In the circuit shown earlier, positive feedback causes the logic states to be delayed as they pass from one gate to the next. This creates oscillation, which reaches its highest frequency at 6 volts and its lowest near 1 volt, according to our practical observations. To stay on the safe side, we’ll power the IC at up to 5 volts; this also provides levels compatible with the TTL stages that follow. Gate N4 brings the oscillation up to 5 volts peak-to-peak. Its amplitude varies with the supply voltage of the IC forming the oscillator, a 74HC00. In this test, a variable resistor, or potentiometer, controls the “Vosc” voltage. Here are the results from the VCO:
With a range from 1 MHz at 1 volt to 26 MHz at 5 volts, this VCO supports many useful experiments across different frequencies and bands, including learning to design dividers based on the 74163. For lower frequencies, a 74S163 or 74LS163 will do, since the VCO’s maximum frequency only just exceeds 26 MHz. Connecting the circuits gives us an important part of a PLL. We still need a reference oscillator to act as the system’s frequency standard and stabilize the free-running oscillator built around the 74HC00. Finally, we’ll add the phase-and-frequency detector and low-pass filter, whose design is crucial to how quickly and accurately the system reaches the frequency selected with the divider’s input switches. For now, we have a VCO whose frequency varies with its control voltage and an initial 74S163 design for demonstration. The next video shows how this device divides its input frequency according to the adjustment, or set value, of the switches connected to inputs D0–D3.
Next, as noted earlier, we’ll add the popular and effective 4046 and its supporting circuits to complete the PLL. Then we can expand and improve the programmable divider and adapt it for simple, practical use. We’ll work with encoders, microcontrollers, higher-frequency free-running oscillators, and other programmable-divider models such as the 74LVC163. Our long-term goal, one we’ve imagined for years, is to build a complete radio system so the NeoTeo community can communicate over the air. Those who wish can keep using Skype or another video chat service, while we work toward a radio that lets everyone who builds the equipment communicate—even from the most remote corner of the world. That will take much more than three or four simple ICs and a couple of articles. There’s a long road ahead, with plenty still to test and learn. The important thing is that we’ve taken the first major step: working with oscillators, dividers, and phase-locked loops. From here, we can tackle the next stages knowing that our radio—or even TV—equipment can stay on its intended frequency without drift or shifts.
Generating a precise frequency is useful for more than building a radio. These ideas can be adapted to other applications, too. For some, this may open up a whole new world; for others, it is a collection of simple, useful circuits brought together in one application. Whatever you use them for, this is the first installment in a series that will make NeoTeo history.
Simulation of the 74S163 divider: Download the file
74LVC163