ahh
I think you misunderstood my use of the capacitor, it seemed to me that the circuit still needs power to turn off the magnet, and thus the capacitor is there to power the circuit, I said supercap because I thought you needed the 600mah for 0.3s as per spec to do this.
I suspected you'd have to require the PWM logic, which is fine, I just don't understand PIC assembly so I'll have a look at it.
so the best option would to be reprogram the PIC, but also connect the cap so that the circuit stays alive to reset?
in the case of having a design factor, we would just oversize that capacitor to make sure that yes, the PIC does turn off the magnet?
in my design it's just a pick and drop system, so once the EPM is off, it won't need to be turned back on without external intervention.
that said how would i go about energizing the magnet again? just apply a high to the PWM pin again?