Skip to main content
Associate
July 18, 2023
Solved

Output push-pull with pull-up or pull-down capability

  • July 18, 2023
  • 6 replies
  • 14044 views

The output push-pull implies either 0 or 1 - never floating. When do we use the output push-pull with pull-up or pull-down capability? What is the application for the output push-pull with pull-up or pull-down configuration?

This topic has been closed for replies.
Best answer by Andreas Bolsch

Well, for a pin statically configured as push-pull output none. But if the pin is dynamically reconfigured, i.e. switched from output to input, it's handy not to have to switch pull-up/down on and off every time. Saves time, flash and ... headaches. As the order of switching mode and pull-up/down would matter. And if the pull-up/down would be automatically disabled when switching to output, the precise timing would be critical.

6 replies

raptorhal2
Lead
July 18, 2023

Check the data sheet of any devices connected to your GPIOs. That should provide any pull up or pull down requirements. For example, SPI chip select usually requires a pull up to place the device in standby at power on while the MCU is getting the other pins configured.

tzkAuthor
Associate
July 19, 2023

Thanks. What you say matches this blog article: 

https://resources.pcb.cadence.com/blog/are-pull-up-resistors-needed-on-push-pull-buses
I am working on the device required to have the pull-up. The device does not need to be reconfigured dynamically. But then, it works with or without a pull-up resistor setting. And some of my team members think what AScha.3 describe: 

"its only useful for input , or open collector out + pull-up. all other is nonsense. "

So, under what situation will we be seeing this pull-up requirement? How can I test it out so the device fails without configuring the pull-up setting?

 

AScha.3
Super User
July 18, 2023

 output push-pull implies either 0 or 1 - ok. thats it.

>What is the application for the output push-pull with pull-up or pull-down configuration?

its only useful for input , or open collector out + pullup . all other is nonsense. 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Andreas Bolsch
Andreas BolschBest answer
Lead III
July 18, 2023

Well, for a pin statically configured as push-pull output none. But if the pin is dynamically reconfigured, i.e. switched from output to input, it's handy not to have to switch pull-up/down on and off every time. Saves time, flash and ... headaches. As the order of switching mode and pull-up/down would matter. And if the pull-up/down would be automatically disabled when switching to output, the precise timing would be critical.

tzkAuthor
Associate
July 19, 2023

Thanks. It makes sense. 

LCE
Principal II
July 19, 2023

Basics of EE, learn what a push-pull output means, then you will see that any pull-up or down resistor makes no sense at all - the only exception: you want to have some minimum load and burn some calories. ;)