USE DISCOUNT CODEEXPERT30TO SAVE $30 USD
Schematic to disable buck from 24V
Modjo , 02-27-2021, 06:57 AM
Hi all,
I would like to disable/enable a buck from a microcontroller (stm32L4) that have I-O 5V tolerant.
The voltage of enable pin is tied to 24V max --> i can't use a pin from the micro.
Can you tell me is the design under can be a good choice or do i need to use another transitor between the I/O and EN pin (2 tansistor NPN PNP) ?
ibocakir06 , 02-28-2021, 05:07 AM
You are totaly wrong about EN pin of this regulator. You have to put a pull down resistor and route it directly to the MCU.
The EN pin threshold is 1.263V typical. When you make your pins HIGH from MCU side, the output of 3.3V will enable the regulator.
By the way, you mentioned your MCU pins are 5V tolerant. If you are talking about input,yes this is right. However you are using this pin as output.
Modjo , 02-28-2021, 12:32 PM
At first thanks for your answer. Why i'm wrong ? see the typical application of TI datasheet under. I can pull the EN pin to VIN --> advantage the buck start without the need of mcu ...
I just want to know if my schematic can work to pull down the EN pin
ibocakir06 , 02-28-2021, 02:46 PM
You have to simply pulldown the EN pin and route it to the GPIO of an MCU. Because the threshold of EN pins is 1.263V and the MCU IO voltage 3.3V is enough to enable the regulator.
Modjo , 03-01-2021, 01:17 AM
Yes i understand and agree with you in the case of it's always the mcu that enable or disable the buck. But in my case (the functionality i need) is to start the buck without the need of an external MCU. This is the raeson i connect enable pin to VIN ! The only reason i need the mcu gpio is to disable the buck when i need it.
robertferanec , 03-01-2021, 07:29 AM
You can use any kind of standard transistor, but using a mosfet is easier. Very often we use 2N7002. If you like, you can find many examples for example in our OpenRex schematic.
PS: Just be careful what will be the default state of the MCU pin (after power up, very often they are configured as inputs, so you may need an external pull up or pull down resistor) and what should be your PSU (if ON or OFF) at that moment.
The example below shows a connection of 3V3 output pin to a pin with 5V voltage (that is why the Q13 is used). It is similar to your situation.
https://www.imx6rex.com/wp-content/u...Production.pdfModjo , 03-01-2021, 01:20 PM
thanks @robertferanec this is i would like !
Just a question, on your schematic you have 5V on Drain pin, if i have for example 24 or 42V we can keep the same mounting or do we need to add a second mosfet like this :
Otherwise i also get some idea on your openRex rex project !
robertferanec , 03-01-2021, 10:52 PM
For Enable pin, you only need one mosfet. The schematic you attached is different - there is one transistor (Q4) used as a switch and the other one (Q9) is used to control the switch (not your situation)
Modjo , 03-02-2021, 12:31 AM
Ok thanks for this clarification
Use our interactive
Discord forum to reply or ask new questions.