Proper max627 circuit

Hello,

I am making a circuit where I connect one solar panel to a capacitor through a mosfet, using an arduino due as a trigger. The solar panel has 20V and the capacitor is electrolitic and nominal voltage of 100V.

This is the circuit I currently have:

The point is that the circuit worked but the max627 ended up breaking. It had son short circuit that made it extremely hot and not working properly.

I think the problem can be that the digital pin connected to the in pin of the max627 is giving too much current and thus making it break. According to the max627 spreadsheet the max current in the input is 10uA which is really lower than the current the arduino due digital pin gives ("Each pin can provide (source) a current of 3 mA or 15 mA" taken from here https://www.arduino.cc/en/Main/arduinoBoardDue).

This is just what I think (not 100% sure) so I want to know what do you guys think and how can I limit somehow the current in case this is the problem. I saw circuits where they put a resistor of 10k ohm between Vin and Gnd in the max627 and a capacitor of 0.1uF but i dont understand if that limits the current.

Another question I have is if I have to connec the mosfet driver directly to the gate of the mosfet without any resistor or anything.

I also don't understand in the max627 datasheet the logic 0 and logic 1 voltage. What is that?

Have you ever used this element? Any tips?

Thanks

0900766b8132a7c0.pdf (174 KB)

0900766b812b12db.pdf (919 KB)

irfp4110pbf.pdf (289 KB)