Skip to content

LVL-15 Single-MOSFET open-drain shifter on a fast push-pull line

Severity Status Implementation
warning planned mid, depends on NET-10, NET-12

Looks at. The shifter, signal speed or interface type.

What it catches. A BSS138-pair shifter (or PCA9306-style pass gate without acceleration) on SPI above a few MHz, WS2812 data, a fast clock or any push-pull line that needs sharp edges.

Why it matters. Rising edges on the side behind the FET come only from that side's pull-up into the line capacitance: 10 kΩ and 20 pF is a 200 ns time constant, so a 4 MHz SPI clock never reaches the high level. Falling edges are fine, which makes the failure look like a duty-cycle or timing problem.

Example. A 3.3 V MCU driving a 5 V WS2812 chain through a BSS138 with 10 kΩ pull-ups: the 800 kHz bit timing needs a 0.4 µs high pulse, and the edge alone eats most of it; the first LED reads garbage.

How to check. Recognise the shifter, then classify the signal: a pin function of SPI SCK/MOSI, a timer/PWM output, an LED data input (NET-12, following the line with NET-10); flag anything that is not I2C, 1-Wire or a slow GPIO.

Fix. A buffer with the higher supply and TTL thresholds (74AHCT1G125) or a direction-controlled translator.

References. AN10441 §2 (intended for I2C); SCEA035A §3-4; Wikipedia, Level shifter.