cancel
Showing results for 
Search instead for 
Did you mean: 

5V tolerant pin in open drain mode

PLe B.1
Associate

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?

2 REPLIES 2
berendi
Principal

> 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.

PLe B.1
Associate

Thanks for you response,

Yes it was supposed to have this schematic.

0693W000000VTtvQAG.jpg

Ok, so i can replace the mosfet by an open drain gpio. Thanks