How to discharge a capacitor at a given voltage?
V3 will keep charging the capacitor, and the diode will prevent the capacitor from discharging. Before the cap reaches 3.2V, it will keep charging and never discharge (the diode blocks it from discharging). Once the cap reaches 3.2V, it will turn the MOSFET on. The capacitor is also connected to the drain.