I am building the following circuit, in order to control the P channel MOSFET as a high side switch for my load.
The input of this circuit will be from a microcontroller (maybe an STM32F103), and I was planning to use the output pin, in open collector mode.
Will this work? Please note that I am pulling up the pin at 12V.
I know that in other circumstances it would work, but in a microcontroller, will the output handle the 12V? When in open collector, are the ESD diodes disconnected?
And if it works, how do you handle the initialization of the pin, (after reset, before configured as an open collector pin).