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. It also covers the signal levels to expect at an input, choosing connectors, grounding and power mismatches, the symptoms of a signal conflict, and links such as I²C, USB, RS-232, RS-485 and Zigbee.

Competency
12.0
Sections
10 + self-check
Then
Drill comp 12

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:

  1. analog in
  2. ADC
  3. digital bits
  4. DAC
  5. analog out

ADC samples & quantizes · DAC reconstructs

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ⁿ output levels (codes), so 2ⁿ − 1 steps from bottom to top. 8-bit = 256 levels; 12-bit = 4096. More bits = finer detail, less quantization error.
Sample rateHow often the ADC samples. Must be more than twice the highest signal frequency to capture it faithfully, with an anti-aliasing filter ahead of the ADC; in practice about 2.5× is used.

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 0–0.8 V as low (input levels; 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.

On the exam

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.
Tool(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. 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 resistor 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.

Signal levels to expect at an input

Competency 12.1 asks you to list the input signal levels to expect from common products and test equipment. Knowing the level tells you what an input is built for, and whether a reading is normal before you suspect a fault.

SignalTypical level
Microphone−60 to −40 dBu, about 0.775 to 7.75 mV: a few thousandths of a volt, so it needs a preamp (Shure).
Consumer line level−10 dBV ≈ 0.316 V RMS, from players and consumer gear (A/V guide).
Professional line level+4 dBu ≈ 1.23 V RMS, from mixing desks and processors; about 12 dB above consumer line level.
Composite video1 V peak-to-peak into 75 Ω (A/V guide).
LogicTTL: 0 to 0.8 V low, 2 V or more high; CMOS: fractions of its supply (section 2 and Digital Electronics, section 3).
RS-232Driver ±5 to ±15 V; the receiver reads −3 to −15 V as a 1 (mark) and +3 to +15 V as a 0 (space); between ±3 V is undefined (TI).
RS-485Differential: the driver puts out at least 1.5 V between its two wires, and the receiver needs only 200 mV (TI).
Function generatorA 50 Ω output. The display assumes the load you set; into an open circuit or high-impedance input the real output is twice the value shown for a 50 Ω load (Keysight).

Worked example

Turning dB references into volts: 0 dBu is the voltage of 1 mW in 600 Ω, √(0.001 × 600) ≈ 0.775 V. So +4 dBu = 0.775 × 104/20 ≈ 1.23 V, −40 dBu = 0.775 × 10−40/20 ≈ 7.75 mV, and −10 dBV = 10−10/20 ≈ 0.316 V. Professional and consumer line levels differ by 20 log (1.228 / 0.316) ≈ 11.8 dB, the "12 dB" usually quoted.

Worked example

The generator that reads double: a generator set to 1 V peak-to-peak with its load setting at 50 Ω really produces 2 V behind its 50 Ω source resistance. Into a 50 Ω load the divider gives 2 × 50 / (50 + 50) = 1 V, as set; into a scope's high-impedance input almost none of it is lost, and the scope shows about 2 V. Set the generator's load to high impedance, or terminate the cable in 50 Ω.

On the exam

Levels to know: a microphone puts out millivolts and needs a preamp, while line level is roughly a volt; consumer line level is −10 dBV and professional is +4 dBu, about 12 dB apart.

Plugs and connectors: the right one for the job

Competency 12.2 asks you to explain what plugs and connectors are for and why the proper one matters. A connector does more than join wires. It keeps the line's impedance (a 50 Ω BNC on 50 Ω coax, a 75 Ω one for video), it keeps a balanced pair balanced, it carries a wiring standard that says which pin does what, and its shape controls how it mates: most connectors are keyed to go in only one way, while USB Type-C is built to work either way up. The connector families themselves are in the Cabling guide.

ConnectorWhat the standard fixes
XLR (balanced audio)AES's "pin 2 is hot": pin 2 carries the signal, pin 3 its inverted partner, and pin 1 the shield, which Rane recommends connecting to the chassis where the cable enters.
RJ11, RJ14, RJ25The same six-position modular plug wired for one, two or three telephone lines (Telecommunications, section 10). The plug fits all three jacks; the wiring decides which line you get.
DB9 serialThe 9-pin connector most PCs used for TIA/EIA-232 serial ports, in place of the standard's original 25-pin D connector (TI).
USB Type-CReversible: the plug works either way up, and the configuration-channel (CC) pins tell the port which way the cable is turned (TI).

Trap

A connector that fits is not always the right one: a 50 Ω BNC mates with a 75 Ω one and creates an impedance mismatch, and an RJ11 cord fits an RJ14 jack but reaches only the first line. Match the connector to the cable's impedance, the signal's balance and the wiring standard, not just the shape.

Grounding and power mismatches

Competency 12.3 asks you to explain proper and improper grounding and the results of a power source mismatch. Every equipment enclosure in a professional installation must connect to the system's earth (safety) ground, which the law requires (Rane). Trouble starts when two pieces of equipment are each grounded through their own power cords and also joined by a cable shield: the shield and the two safety grounds form a ground loop, a second return path. Where the shield is part of the signal circuit (the return conductor of an unbalanced cable, or a balanced shield tied to signal ground inside the equipment), the current around the loop gets into the audio as hum and buzz (Rane).

Proper

Balanced lines with every shield (pin 1) bonded to the chassis where it enters; an isolation transformer or an interface box in the signal path where loops remain; if a shield must be lifted, lift one end only, optionally through a small capacitor for RF (Rane).

Improper

Shields tied to signal ground inside balanced gear, which puts the ground-loop current into the audio path; disconnecting both ends of a shield; and defeating the power cord's safety ground to stop hum, which removes the shock protection the ground provides.

Home equipment with two-pin power cords rarely has ground loops, because there is no second path to ground between units (Rane). A power source mismatch is the other half of 12.3: equipment run from the wrong supply voltage. Power in a resistive load goes as V2 / R, so doubling the voltage quadruples the power, and halving it leaves a quarter. A supply's current rating, by contrast, only has to cover what the equipment draws: the load sets the current (I = V / R), so a supply rated for more current than needed is not a mismatch, but one with the wrong voltage is.

Worked example

A 120 V heater on 240 V: a 120 V, 60 W resistive heater has R = 1202 / 60 = 240 Ω. On 240 V it tries to draw P = 2402 / 240 = 240 W, four times its rating. A 240 V, 60 W heater on 120 V has 960 Ω and gives only 1202 / 960 = 15 W.

Safety

Never cure hum by lifting the safety ground: cutting off the ground pin or using a ground-lift adapter on a power cord leaves the chassis without its fault path. Break the loop in the signal path instead, with an isolation transformer or a shield lifted at one end.

Signal conflict symptoms

Competency 12.4 asks you to list the symptoms of a signal conflict. Most interface faults come down to a level, impedance, ground or timing that does not match, and each has its own symptom.

SymptomLikely conflict
Hum or buzzA ground loop (section 7). A 60 Hz hum points to a loop; 120 Hz usually means failing supply filter capacitors (A/V guide).
Loud and distortedToo much level: a line-level source plugged into a microphone input (Shure), or any input driven past what it can handle.
Almost no soundToo little level: a microphone plugged into a line-level input (Shure).
Level drops when connectedLoading: the input's impedance is too low for the source, so the source's own resistance drops much of the signal.
Reading twice or half what it should beA 50 Ω source set for the wrong load (section 5, Keysight).
Reflections on a cableAn impedance mismatch: a cable not terminated in its characteristic impedance (TI), or mixed 50 and 75 Ω parts (Cabling guide).
Garbled dataTwo drivers enabled on one bus at once, which TI calls line contention, or logic levels that do not meet the receiving family's thresholds.

Worked example

Loading a 600 Ω source: the source's 600 Ω output resistance and the load form a voltage divider. Into a 600 Ω input the load gets 600 / (600 + 600) = half the open-circuit voltage, 20 log 0.5 ≈ −6 dB. Into a 10 kΩ input it gets 10000 / 10600 ≈ 0.94 of it, only about −0.5 dB.

On the exam

Symptoms to match: hum points to a ground loop; loud, distorted sound to a level that is too high, such as line level into a microphone input; and a level that drops when the cable is connected to loading or an impedance mismatch.

Serial buses and wireless links

Competency 12.5 asks you to describe other electronic interfacing such as USB, Zigbee and I²C. Each interface fixes the wires, the levels, the speed and who may talk when.

InterfaceHow it works
I²CTwo lines, serial data (SDA) and serial clock (SCL). The outputs are open-drain or open-collector and can only pull low, so each line has a pull-up resistor and sits high when idle. Each device has a unique address. Up to 100 kbit/s (Standard-mode), 400 kbit/s (Fast-mode), 1 Mbit/s (Fast-mode Plus) or 3.4 Mbit/s (High-speed); the number of devices is limited by the bus capacitance (NXP).
USBData on the D+ and D− pair (480 Mbit/s for USB 2.0 High Speed) and power on VBUS at 5 V: 500 mA for USB 2.0, 900 mA for USB 3.0, 1.5 A for battery charging (BC 1.2) and 3 A on a Type-C port (TI). USB Power Delivery raises the voltage: 100 W at 20 V and 5 A, and up to 240 W at 48 V (USB-IF).
RS-232 (TIA-232)Single-ended, with the driver and receiver sharing a signal ground. The standard sets 20 kbit/s and a 2500 pF load, about 15 to 20 m of cable (TI).
RS-485 (TIA-485)Differential (balanced) twisted pair, up to 32 unit loads on one bus, one driver talking at a time, and about 1200 m of cable. The cable is terminated at its end in its characteristic impedance, about 90 to 120 Ω (TI).
ZigbeeA low-power wireless network for sensors and smart devices, on 2.4 GHz and sub-GHz bands. Its self-organizing, self-healing mesh routes around a failed node and scales to thousands of nodes (Connectivity Standards Alliance).

Worked example

USB power budgets: P = V × I. A USB 2.0 port gives 5 × 0.5 = 2.5 W and a USB 3.0 port 5 × 0.9 = 4.5 W; a Type-C port at 3 A gives 5 × 3 = 15 W. To reach 100 W at the cable's 5 A limit, Power Delivery must raise VBUS to 100 / 5 = 20 V; at 48 V the same 5 A gives 240 W.

Worked example

Noise margins on serial lines: an RS-232 driver puts out at least 5 V and the receiver needs only 3 V, a margin of 5 − 3 = 2 V (TI). An RS-485 driver gives at least 1.5 V differential and the receiver needs 0.2 V, a margin of 1.5 − 0.2 = 1.3 V; RS-485 goes much farther because noise picked up equally on both wires cancels in the difference.

On the exam

Interfaces to know: I²C uses two lines, SDA and SCL, with pull-up resistors and a unique address for each device; USB carries 5 V power as well as data; Zigbee is a low-power wireless mesh for sensors.

On the job: hum on a new audio feed

Job practice, not exam content. A typical sequence when a newly connected audio feed, such as a logging recorder patched into a radio console, arrives with hum or the wrong level. The equipment manuals and your employer's procedures come first.

  1. Match the levels first. Check that a line output feeds a line input and a microphone output a microphone input. A level that is far too loud and distorted, or almost silent, is a level mismatch, not a fault (section 8).
  2. Check balanced against unbalanced. A balanced output into an unbalanced input, or the reverse, needs the right adapter or an interface box; confirm the pin 2, pin 3 and pin 1 wiring at both ends (section 6).
  3. Listen for the hum's pitch. A steady 60 Hz hum that appears only when the cable is connected points to a ground loop between the two racks (section 7).
  4. Break the loop in the signal path. Put an isolation transformer in the line, or lift the shield at one end. Leave both equipment safety grounds connected.
  5. Record the change. Note the levels, the wiring and any transformer added, so the next technician knows why it is there (Work Procedures).

Check yourself

Answer in your head first, then reveal.

  1. In a TTL circuit, what else does "+5 volts" mean?

    in a TTL circuit, "+5 volts," "logic high," "1," and "on" all refer to the same state

  2. What makes two parts with different logic voltages compatible?

    a level shifter makes them compatible

  3. How many levels does an 8-bit converter have?

    8-bit = 256 levels

  4. How fast must an ADC sample to capture a signal faithfully?

    Must be more than twice the highest signal frequency to capture it faithfully

  5. How does an optoisolator pass a signal?

    the signal crosses as light, so input and output share no electrical connection

  6. What level does a microphone put out compared with line level?

    a microphone puts out millivolts and needs a preamp, while line level is roughly a volt; consumer line level is −10 dBV and professional is +4 dBu, about 12 dB apart

  7. What do hum, loud distortion and a dropping level each point to?

    hum points to a ground loop; loud, distorted sound to a level that is too high, such as line level into a microphone input; and a level that drops when the cable is connected to loading or an impedance mismatch

  8. How does an I²C bus connect its devices, and what does USB carry besides data?

    I²C uses two lines, SDA and SCL, with pull-up resistors and a unique address for each device; USB carries 5 V power as well as data

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.