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.
Previous article:Problems with STM32 tick clock source
Next article:STM32 burning file .bat analysis
Recommended ReadingLatest update time:2024-11-16 22:25
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- In your spare time, we can exercise together and supervise each other.
- Application of resettable fuse
- Summary: Advanced IO Operation Software SPI Performance
- Does anyone know how to write a DLL for a card reader/writer? Is there any relevant information?
- Still using the burning method to test fabric composition? Now there is a new method.
- How to pair MCU with FPGA to improve system efficiency?
- [National Technology N32G457 Review] 1. Brief review of the first power-on
- Helping to be efficient, green and safe, unlock the secrets of high-quality automotive design with Nexperia!
- The pain of vias, isn’t it just a window opened in the via, how can it cause a short circuit?
- Why is millimeter wave so important to 5G networks? How do 5G networks use millimeter wave?