DESIGNMISSION 016 · Startup safety · Hardware defaultsFoundational

It Turns On Before the Firmware Does

A 24 V valve clicks every time the controller resets. The firmware eventually drives its enable LOW, but the MCU pin is high-impedance first. Design a default that is safe before code runs and stays safe while the pin changes mode.

Requirements

Reset window · up to 120 msDriver EN · active HIGHSafe reset · EN ≤ 0.8 VCommand HIGH · EN ≥ 2.0 VGPIO HIGH guarantee · VOH ≥2.8 V @ IOH≤2 mA
  1. 01Define the safe default
  2. 02Verify startup
Circuit overview

The startup path

Valve enable circuit during controller resetA 3.3 volt microcontroller output connects to the active-high enable of a valve driver. The driver has an internal 100 kilohm pull-up to 5 volts. The selected external pull-down is 47 kΩ.3.3 V MCUGPIO · HIGH-Z ATRESETVALVE DRIVERACTIVE HIGHEN+5 VR INTERNAL100 kΩRPD47 kΩ+24 V24 V may be present before the MCU starts, or during a later reset.

Design the EN bias and GPIO handoff. The internal 100 kΩ pull-up favors ON; resets can occur at any time.

Circuit and case data
Circuit and case data
Device limits and source
Limits supplied for this mission’s full operating range
DeviceParameterGuarantee
Valve driverEN LOW / HIGHVIL ≤ 0.8 V · VIH ≥ 2.0 V
Valve driverInternal bias / leakage100 kΩ to 5 V · |Ileak| ≤ 2 µA
MCU GPIOCommanded HIGHVOH ≥ 2.8 V while sourcing ≤ 2.0 mA
MCU GPIOReset stateFloating input for up to 120 ms

The selected MCU pin is supplied as high-impedance throughout reset for this exercise. Real designs must verify the exact pin's reset/boot/alternate-function behavior, brownout behavior, and any internal pulls from the specific MCU datasheet.

For reset, solve the pull-up, +2 µA leakage and external pull-down together. For commanded HIGH, use the opposite leakage corner and conservatively check 2.8 V ÷ RPD + 2 µA against the GPIO source-current guarantee.

Startup envelope
01RESET / HIGH-ZHardware owns EN
02GPIO HANDOFFMode/latch transition
03VALID COMMANDFirmware may assert
Reset EN1.663 VHIGH load0.062 mAHandoff pulse4 µs

Selected: 47 kΩ. Change the pin to output, then write LOW.

Evidence notebook 0 saved

No evidence saved yet. Measure, inspect the result, then save useful observations.

Current task
Current task

Step 1 of 2

Define a safe enable

0 evaluated decisions · Draft and verification saved locally
Technical references