Ham radio, visually · Lesson 16

Logic and op-amps

Before you startThis lesson uses:

Two families of chips run inside every modern radio. Digital logic treats voltages as just two values, 1 and 0, and computes with them: counting, dividing frequencies, controlling everything. The operational amplifier is the opposite: a near-perfect analog amplifier whose behavior you set with a couple of resistors. Both are worth a few questions on the Extra exam, and both are fun.

Logic gates

A gate looks at its inputs and produces an output by a fixed rule. With positive logic, a high voltage means 1 and a low voltage means 0. Click the inputs:

Figure E6-3 (gate symbols on the exam)
Figure E6-3, logic gate symbols

2 is NAND, 4 is NOR, 5 is NOT (inversion).

Inside the chips

Flip-flops: memory, and dividing by two

Connect gates in a loop and they can remember: a flip-flop is bistable, staying in whichever of two states it was put. Wired to toggle at every clock pulse, each flip-flop flips at half the rate of its input, dividing the frequency by 2. Chain them:

Comparators, and why hysteresis helps

A comparator turns an analog voltage into a digital one: its output changes state when the input crosses a threshold. A noisy input crossing slowly would make it chatter, flipping many times. Hysteresis uses two thresholds, a higher one to switch on and a lower one to switch off (like the squelch in course ch. 11):

The operational amplifier

An op-amp is a high-gain, direct-coupled differential amplifier: it amplifies the difference between its two inputs, enormously, with a very high input impedance and a very low output impedance. On its own its gain is far too high to use. With negative feedback (part of the output fed back to the inverting input), the gain is set purely by resistors. Figure E7-3 is the classic inverting amplifier:

Figure E7-3
Figure E7-3, an inverting op-amp amplifier

Exam questions, explained

E7A04: Flip-flops to divide by 16? 4.

Each divides by 2: 2 × 2 × 2 × 2 = 16.

E7A07: What does a NAND gate do? Outputs 0 only if all inputs are 1.

It's AND, inverted: check the truth table above.

E6C01: Why hysteresis in a comparator? To prevent input noise from causing unstable output.

Slide the hysteresis up and the chatter stops.

E7G09: R1 = 1 kΩ, RF = 10 kΩ, 0.23 V in? −2.3 V.

Gain −10, inverted.

Practice the real questions this lesson covers:

Extra E6C, E7A, E7G General G7B (gates, counters, amplifiers)

Last updated