IO-11 MOSFET gate without a pull¶
| Severity | Status | Implementation |
|---|---|---|
| error | runs in better_erc | easy, depends on IMP-1 |
Data it needs: graph, part classes, rails, values.
Looks at. FET parts with named pins (LIB-3), resistors.
What it catches. A MOSFET whose gate has no resistor to its source (or to the rail that means "off"), driven by something that can be high-Z: an MCU GPIO, a driver in reset, a connector.
Why it matters. A MOSFET gate is a capacitor with gigaohms of leakage. Undriven it keeps whatever charge it last had, or picks up drain-gate coupling from the switching node: a load switch half on, a power FET in its linear region getting hot, a reverse-polarity FET that conducts when it should not.
Example. A low-side NMOS for a solenoid, gate on an MCU GPIO through 100 Ω and nothing else: during reset the solenoid clicks, and with the MCU unpowered the drain's dV/dt from another load turns it on.
How to check. For each MOSFET (pins named per LIB-3), the gate net needs a resistor to the source net or to the off-rail, unless its driver is a push-pull output that is valid in every state (a gate driver IC). The off-rail is one at or above the source's level for P-channel, at or below it for N-channel. A source on no rail (the common node of back-to-back switches) sits at most at the rails one FET channel away, through the body diodes; each needs a known voltage (the name, or the project file's range, whose top counts). An unknown voltage keeps the finding.
Fix. 10-100 kΩ from gate to source (pull-down for NMOS, pull-up to the source rail for PMOS).
References. AoE3 chapter 3 (FET switches) and chapter 12; Wikipedia, Pull-up resistor.
Test schematics¶
Each schematic below is in test_schematics/sources. The block under it is what berc check --only IO-11 reports on it.
io-11_gate_pulls¶
error IO-11 #yp9 Q1 gate Q1.1 (G) on /GATE1: no resistor to its source; it floats while its driver is in reset, high-Z or unpowered
net /GATE1, part Q1
fix: 10-100 kΩ from gate to source (a pull-down for N-channel, a pull-up to the source rail for P-channel)
error IO-11 #fpx Q6 gate Q6.1 (G) on /GATE6: no resistor to its source; it floats while its driver is in reset, high-Z or unpowered
net /GATE6, part Q6
fix: 10-100 kΩ from gate to source (a pull-down for N-channel, a pull-up to the source rail for P-channel)
error IO-11 #vh6 Q7 gate Q7.1 (G) on /GATE7: only R6 towards on, no resistor to its source; it floats while its driver is in reset, high-Z or unpowered
net /GATE7, part Q7
fix: 10-100 kΩ from gate to source (a pull-down for N-channel, a pull-up to the source rail for P-channel)
io-11_pulled_off¶
error IO-11 #mex Q5 gate Q5.1 (G) on /GATE_B: only R3 towards on, no resistor to its source; it floats while its driver is in reset, high-Z or unpowered
net /GATE_B, part Q5
fix: 10-100 kΩ from gate to source (a pull-down for N-channel, a pull-up to the source rail for P-channel)
error IO-11 #xhy Q6 gate Q6.1 (G) on /GATE_B: only R3 towards on, no resistor to its source; it floats while its driver is in reset, high-Z or unpowered
net /GATE_B, part Q6
fix: 10-100 kΩ from gate to source (a pull-down for N-channel, a pull-up to the source rail for P-channel)
error IO-11 #gqs Q7 gate Q7.1 (G) on /GATE_C: only R4 towards on, no resistor to its source; it floats while its driver is in reset, high-Z or unpowered
net /GATE_C, part Q7
fix: 10-100 kΩ from gate to source (a pull-down for N-channel, a pull-up to the source rail for P-channel)
error IO-11 #56n Q8 gate Q8.1 (G) on /GATE_D: only R5 towards on, no resistor to its source; it floats while its driver is in reset, high-Z or unpowered
net /GATE_D, part Q8
fix: 10-100 kΩ from gate to source (a pull-down for N-channel, a pull-up to the source rail for P-channel)
IO-11 also fires on the test schematics of other checks: dbg-4_power_leds, dbg-8_open_drain_pull_ups, drv-14_inductive_loads, drv-5_inverter_gate_resistor, drv-6_back_to_back, drv-7_half_bridge_snubber, drv-9_relay_flyback, io-8_fet_switched_pull, leak-1_rail_dividers, rail-5_unsourced_rail.