Open collector microcontroller output SEEK HELP!

Questions on other types of hardware and getting it talking to the ARM CPU
Post Reply
Posts: 2
Joined: Fri Nov 18, 2016 7:03 am

Open collector microcontroller output SEEK HELP!

Post by Mattle »

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.
STM32F103 PDF: ... RDY6TR.pdf
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).

Posts: 1049
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA

Re: Open collector microcontroller output SEEK HELP!

Post by basicchip »

That device has GPIOs that can be configured as both push-pull and open-drain. But as these are not true open drain, they most likely will latchup when pulled up to 12V. A BAD thing.

So you need to buffer that output, either with a transistor, or FET driver.
buffer.jpg (11.1 KiB) Viewed 13956 times

Post Reply