Logic Level Reference — will these two parts talk?
Input and output thresholds for TTL, CMOS, LVCMOS and LVDS, and which families you can safely interconnect.
Example: LVCMOS 3.3 V driving CMOS 5 V (74HC, 4000 series): will not work reliably. High margin -1.1 V, low margin 1.1 V.
Formula
high margin = V_OH(driver) − V_IH(receiver) low margin = V_IL(receiver) − V_OL(driver)Worked example
LVCMOS 3.3 V driving CMOS 5 V (74HC, 4000 series): will not work reliably. High margin -1.1 V, low margin 1.1 V.
high margin = V_OH(driver) − V_IH(receiver)
2.4 V − 3.5 V
-1.1 V
Negative — a logic 1 may not be recognised.
low margin = V_IL(receiver) − V_OL(driver)
1.5 V − 400 mV
1.1 V
Positive, so a logic 0 is read correctly.
Frequently asked questions
Can I connect a 3.3 V output to a 5 V input?
Only if the 5 V input has TTL thresholds. A 5 V CMOS input needs 3.5 V to register a high, and a 3.3 V part cannot supply that. A 74HCT buffer solves it — CMOS outputs with TTL inputs — as does any 5 V part with TTL-level inputs.
Can I connect a 5 V output to a 3.3 V input?
The levels are readable, but usually not safely. Most 3.3 V inputs have an absolute maximum around 3.6 V, and 5 V will eventually damage the pin. Use a level shifter, a divider for slow signals, or check the datasheet for explicit 5 V tolerance on that specific pin.
What is a noise margin?
How much the signal can be disturbed before it is misread. It is the gap between what the driver guarantees and what the receiver requires. A small positive margin technically works but leaves nothing for supply droop, ground offset or crosstalk.
Why does my level translation work on the bench and fail in production?
Because bench parts are typical and the datasheet numbers are worst case. A marginal combination often works with the specific chips in front of you, then fails on parts from a different lot or at temperature extremes. Design to the guaranteed limits, not what you measure.
Related tools
Connector Pinout Reference
Pinouts for USB-A/B/C, HDMI, RJ45, DB9, JTAG/SWD, Raspberry Pi GPIO, Arduino and ESP32 — diagrammed and searchable.
Reference
I²C Pull-Up Resistor Calculator
Minimum and maximum pull-up values from bus capacitance and rise-time limits, per the I²C specification.
Firmware
Microcontroller Comparison Table
Filterable comparison of common microcontrollers by core, clock, flash, RAM and peripherals — with which ones you can emulate in Chiprun.
Reference
Voltage Divider Calculator
Compute divider output voltage, or pick the best E24/E96 resistor pair for a target ratio — including the error your load introduces.
Components
555 Timer Calculator
Design astable, monostable and 50%-duty 555 circuits. Get the schematic, the waveform, and a bill of materials in stock E24 values.
Circuits
Battery Life Calculator
Runtime from capacity and load — including a duty-cycled sleep profile for battery-powered IoT nodes that spend most of their life asleep.
Power & Wiring