2017-10-16 03:43 AM
Hello there,
I have noticed that in the newer STM32 chips it is possible to configure the GPIO's in 2 kinds of output states:
I was wondering which option is drawing less current for driving simple ON/ OFF logic at low frequency? Is it better to use Push-pull without internal pull-up/ pull-down or open-drain + internal pull-up?
I would appreciate all help.
#gpio-open-drain #push-pull2017-10-16 04:02 AM
Hi
Przenioslo.Lukasz
,I recommend you to have a look to
application note.-Nesrine-
2017-10-16 05:03 AM
The 'Open Drain' configuration is a requirement for some use cases.
This means, the Drain (or the Collector with BJT) is left open, and needs an exernal load to VDD (or VCC).
OD outputs form a 'wired OR', if connected together.
For example, the I2C bus requires both bus pins (SDA, SCL) to be configured as Open Drain.