Skip to main content
mete
Senior
November 6, 2023
Question

output type, pupd, speed of alternative functions

  • November 6, 2023
  • 2 replies
  • 843 views

 

Is there a table of proper settings for the GPIO output type, pull up/down setting and speed of alternative functions ?

This topic has been closed for replies.

2 replies

gbm
Lead III
November 6, 2023

The proper setting depends on you application - schematic, transfer speeds, etc..

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
mete
meteAuthor
Senior
November 6, 2023

I partially understand this, primarily for speed, but isnt the output type and pull up/down implied by at least some of the protocols ? i.e. I2C outputs need to be open drain etc.

gbm
Lead III
November 7, 2023

Yes, I2C normally requires OD. In most of other cases, the setting is application-specific. Sometimes OD may be used to provide 5V output signal. Pull-up may be used for key inputs, UART Rx line and for many other purposes. OD might be useful for single wire UART communication.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice