Skip to main content
PLe B.1
Associate
April 7, 2020
Question

5V tolerant pin in open drain mode

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?

This topic has been closed for replies.

2 replies

berendi
Principal
April 7, 2020

> 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
PLe B.1Author
Associate
April 7, 2020

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