Skip to content

LVL-9 Discrete translator with a gate reference that gives the wrong threshold for one side

Severity Status Implementation
error runs in better_erc easy, depends on NET-4, NET-5

Data it needs: graph, part classes, rails.

Looks at. The translator (NET-4), rails.

What it catches. A BSS138-pair shifter whose FET gates go to the higher rail (or to anything but the lower side's rail).

Why it matters. The gate sets where the FET turns off: with the gate at the lower rail, the source (low side) can rise to about Vgate − Vth before the FET opens, which is the low side's own pull-up level. Gate at the high rail and the FET never opens: the low side follows the high side up to the high rail minus Vth, well above its supply (AN10441 §2 describes the gate on the lower supply).

Example. Gates tied to +5V in a 3.3 V/5 V shifter: the 3.3 V side is pulled to about 3.5-4 V through the FETs whenever the bus is idle, through the 3.3 V devices' clamps.

How to check. The gate net of each FET in a recognised shifter must be the rail of the source-side pull-ups and the lower of the two rails (NET-5).

Fix. Gate to the lower rail, sources on the lower side, drains on the higher side.

References. AN10441 §2; Wikipedia, Level shifter.

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only LVL-9 reports on it.

lvl-9_gate_reference

The test schematic lvl-9_gate_reference The test schematic lvl-9_gate_reference

  error      LVL-9 #7dr     shifter Q3 and Q4 between /I2C_3V3 and /I2C_5V: the gate +5V (5 V) is above the low side's rail +3V3 (3.3 V): the FETs never open and the low side follows the high side up
                            net +5V, part Q3, part Q4
                            fix: gates to the lower rail, sources on the lower side, drains on the higher side