Thanks. Is that mean you are clamping the inverter input to the 5V supply which doesn't go beyond 5V right. Can I use 1N4001 as a schottky?No. Remove the zener diode and connect a schottky diode, cathode to the 5V supply, anode to the inverter input, as an input clamping diode.

