Associate CET · Competency 12.0

Interfacing

Interfacing is how one circuit talks to another — and how digital electronics meets the analog real world. This covers analog-to-digital and digital-to-analog conversion, matching logic levels between families, isolating circuits, and conditioning signals so they arrive clean and compatible.

The analog ↔ digital bridge

The real world is analog — temperature, sound, light, voltage all vary continuously. Digital systems work in discrete bits. Two converters bridge the gap:

An ADC turns a continuous analog signal into numbers; a DAC turns numbers back into an analog signal.
ConverterWhat it does
ADCAnalog-to-Digital: samples the analog voltage at intervals and converts each sample to a binary number. Resolution depends on the number of bits.
DACDigital-to-Analog: takes binary values and reconstructs a stepped analog voltage — smoothed by a filter into a continuous output.
ResolutionAn n-bit converter has 2ⁿ steps. 8-bit = 256 levels; 12-bit = 4096. More bits = finer detail, less quantization error.
Sample rateHow often the ADC samples. Must be at least twice the highest signal frequency to capture it faithfully.
Logic levels & families

Digital circuits represent 1 and 0 as voltage ranges, but different logic families use different thresholds — so interfacing them takes care. TTL treats roughly +2 V–+5 V as a logic high and near 0 V as low (a +5 V TTL signal is a logic high, a "1", "on" — all the same thing). CMOS levels scale with its supply voltage and it's far more sensitive to ESD.

FamilyNotes
TTLTransistor-Transistor Logic. 5 V; fast, higher power draw. High ≥ ~2 V, low ≤ ~0.8 V.
CMOSLow power, wide supply range; levels are a fraction of VDD. Very ESD-sensitive — handle with a grounded strap.
Level shifterA circuit (or chip) that translates signals between families/voltages — e.g. 3.3 V ↔ 5 V — so they're compatible.
Exam point: in a TTL circuit, "+5 volts," "logic high," "1," and "on" all refer to the same state. When two parts use different logic voltages, a level shifter makes them compatible. (See the Digital / Logic tools for gates and levels.)
Isolation

Sometimes two circuits must exchange a signal without a direct electrical connection — for safety, to break ground loops, or to protect sensitive logic from a high-voltage side. Isolation passes the signal across a gap:

Optoisolator

An LED and a photodetector in one package — the signal crosses as light, so input and output share no electrical connection.iAlso called an optocoupler. Common for coupling a microcontroller to a high-voltage or differently-grounded circuit. Covered also on the Optical & Fiber page. Ideal for coupling logic to a noisy or high-voltage side.

Relay / transformer

A relay isolates by using a coil to mechanically switch separate contacts; a transformer isolates AC signals magnetically. Both pass energy with no metallic path between sides.

Signal conditioning & handshaking

Before a signal crosses an interface it often needs conditioning: a buffer (or driver) supplies enough current to drive the next stage without loading the source; an amplifier raises a weak sensor signal; a filter removes noise; a pull-up/pull-down resistoriA pull-up resistor ties a line to the supply so it reads a definite "high" when nothing is driving it; a pull-down ties it to ground for a definite "low." Prevents floating inputs. sets a default logic state on an idle line.

When two devices exchange data they often handshake — exchanging ready/acknowledge signals so neither sends faster than the other can receive. This is the basis of most data interfaces, from a printer's busy line to serial flow control.

Practice this topic: Interfacing questions are in the Study Hub quiz bank, logic levels and gates are in the Digital / Logic tools, and isolation is also covered on the Optical & Fiber page.