2020-04-07 05:39 AM
Hi,
I have a question on about the 5V tolerant pin of the STM32F103RG. I would like to control a voltage reference create by a voltage divider with the STM32F103RG like below :
But i would like to replace the MOSFET by a 5V tolerant pin of the MCU (configured in open drain) to have two state : the first state with 5V at the voltage divider and the second state with the voltage attented in the voltage divider. Is it possible without damaging the MCU?
2020-04-07 07:56 AM
> a voltage divider with the STM32F103RG like below :
Are we supposed to see a schematics here? Because I can't.
> Is it possible without damaging the MCU?
Just ensure that the pin does not have to sink more than 20 mA when low.
2020-04-07 08:00 AM
Thanks for you response,
Yes it was supposed to have this schematic.
Ok, so i can replace the mosfet by an open drain gpio. Thanks