28. Fast charge, slow release

CTRL_IN switches between 0 V and 5 V.

Using the provided C1 = 10 µF, one diode and two resistors, design an RC timing circuit with fast charging and slow discharging.

  • When CTRL_IN changes from 0 V to 5 V, TIMING_OUT ≥ 4 V within 5 ms.
  • When CTRL_IN returns to 0 V, TIMING_OUT ≥ 3 V at 50 ms and TIMING_OUT ≤ 1 V at 300 ms.

Example test cases:

CTRL_IN TransitionTime After TransitionRequired TIMING_OUT
0 V → 5 V5 ms≥4 V
5 V → 0 V50 ms≥3 V
5 V → 0 V300 ms≤1 V