1. Normal push-pull output (GPIO_Mode_Out_PP):
Application: Generally used in 0V and 3.3V applications. The circuit passes through two P_MOS and N_MOS tubes, which are responsible for pulling up and pulling down current.
Usage: Direct use
Output level: The low level of push-pull output is 0V and the high level is 3.3V.
2. Normal open-drain output (GPIO_Mode_Out_OD):
Application occasions: Generally used in situations where the levels do not match, such as when a high level of 5V needs to be output.
How to use: You need to connect an external pull-up resistor, the power supply is 5V, set the GPIO to open-drain mode, and when the output is high, the pull-up resistor and the power supply output a 5V voltage.
Output level: In open-drain output mode, if the output is 0, low level, the N_MOS is turned on and the output is grounded. If the control output is 1 (cannot directly output high level), neither high level nor low level is output, which is a high configuration. For normal use, a pull-up resistor must be connected externally.
Features: It has a "wired-and" feature, that is, when many open-drain mode pins are connected together, the pull-up resistor provides a high level only when all pins output a high impedance state. The voltage of this high level is the voltage of the power supply connected to the external pull-up resistor. If one of the pins is at a low level, the line is equivalent to a short circuit to ground, making the entire line at a low level, 0 volts.
3. Multiplexed push-pull output (GPIO_Mode_AF_PP): used as serial port output.
4. Multiplexed open-drain output (GPIO_Mode_AF_OD): used in IIC.
All open-drain outputs require a pull-up resistor.
Previous article:What does the STM32 series suffix mean?
Next article:Calculation and setting of STM32 PWM waveform
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- TangDynasty Software Manual for Anlu FPGA IDE
- Looking for a single chip microcomputer
- [TOPWAY 5-inch smart TFT module review] First experience
- [Hua Diao Experience] 20 Music Visualization: A Series of Trials with ESP32_C3 and WS2812B
- One week evaluation information delivered on time~
- EEWORLD University ---- 2021_Digikey KOL Series: Application of New Intelligent Exposure Algorithm in Face Recognition
- How to use Bluetooth 4.2 to implement the Internet of Things
- EEWORLD University Hall----Live Replay: Keysight Thanksgiving Month Oscilloscope Lecture Hall
- NDRC responds to chip project failure: whoever supports it will be held responsible for major losses and will be held accountable
- 【GD32450I-EVAL】Transplant touch to LittleVGL