I want to turn ON and OFF a LM2596 based buck converter with a microcontroller GPIO pin. 5th pin of the LM2596 can be used to for that purpose.
Please have a look on the schematic.
My question is whether using resistor is R1 is sufficient here?
LM2596 can take upto 45 V, but allowance on ON/OFF pin is only up to 25 V. So, won't 5th pin see exactly Vin when MOSFET is turned OFF?
In datasheet, regarding the ON/OFF pin it has (on 4th page):
Allows the switching regulator circuit to be shut down using logic signals thus dropping the
total input supply current to approximately 80 μA. Pulling this pin below a threshold
voltage of approximately 1.3 V turns the regulator on, and pulling this pin above 1.3 V (up
to a maximum of 25 V) shuts the regulator down. If this shutdown feature is not required,
the ON/OFF pin can be wired to the ground pin or it can be left open. In either case, the
regulator will be in the ON condition.
Update
(After seeing answers from @Justme and @Andy, telling we can connect MCU pin directory to the ON/OFF pin)
I missed to add this in my original question.
I also want to make sure the converter is turned OFF by default until MCU turn it ON. Default behavior of ON/OFF pin is making the converter ON until it get logical HIGH.
So, if we connect MCU pin directly then the converter will start working soon as it got powered, until the MCU pull it UP. Thus I guess I have to use the MOSFET based controlling as I showed above, right?