Here is the difference between open-drain and push-pull: Open-drain output means no output voltage, it is grounded when low level, and not grounded when high level. If an external pull-up resistor is connected, the voltage will be pulled to the power supply voltage of the pull-up resistor when the output is high level. This method is suitable when the voltage of the connected peripheral is lower than the voltage of the microcontroller. Push-pull output means that the microcontroller pin can directly output a high-level voltage. It is grounded when it is low level, and outputs the microcontroller power supply voltage when it is high level. This method does not require a pull-up resistor. However, if the output terminal may be grounded, outputting a high level at this time may cause the microcontroller to run unstably, and may even burn out the pin.
Previous article:STM32 IO input and output
Next article:Stm32 IO port configuration and use
Recommended ReadingLatest update time:2024-11-16 16:29
STM32 download and debug mode interface
The most commonly used debugging methods are JTAG and SWD. JTAG: JTAG (Joint Test Action Group) is an international standard test protocol (IEEE 1149.1 compatible), mainly used for internal chip testing. Most advanced devices now support the JTAG protocol, such as ARM, DSP, FPGA devices, etc. The standard JTAG inte
[Microcontroller]
STM32 pin mode description
1) Floating input (default state): GPIO_Mode_IN_FLOATING The pin itself is considered open circuit, the level is determined by the external circuit, and cannot be output; 2) Pull-up input: GPIO_Mode_IPU Similar to floating input, but when the external level is uncertain, it will be pulled to a high lev
[Microcontroller]
STM32 external door dog (iwdg)
The independent watchdog (IWDG) is driven by a dedicated 40kHz low-speed clock.
It is still effective even if the main clock fails.
The window watchdog is driven by a clock divided from the APB1 clock and
detects abnormal late or early operation of the application through a configurable time window.
IWDG is most s
[Microcontroller]
STM32 enables Bootloader support configuration
1. Program Settings Add the FLASH offset address setting in the first line after entering the main() function, as shown in the figure: 2. Project Settings The space occupied by the Bootloader is 0x4000, so set the Start value to 0x8004000 and the Size value to: original size - 0x4000. Taking STM32F103C8 as a
[Microcontroller]
Detailed explanation of the meaning of the five states of FLASH_Status in STM32
Get status: FLASH_Status FLASH_GetStatus(void); The return value is defined by the enumeration type. typedef enum { FLASH_BUSY = 1, //Busy FLASH_ERROR_PG, //Programming error FLASH_ERROR_WRP, //Write protection error FLASH_COMPLETE, //Operation completed FLASH_TIMEOUT //Operation timeout } FLASH_S
[Microcontroller]
STM8S---IO multiplexing of option byte write operation
Functional realization goal The PWM output IO multiplexing of the CH3 channel of TIM2 can be realized by writing the option byte, and can be set to PA3 or PD2 output. Option Byte The option bytes include the configuration of the chip hardware features and the protection information of the memory. These byte
[Microcontroller]
STM32 study notes-SysTick
1 Introduction The SysTick timer is bundled in the NVIC and is used to generate the SysTick exception (exception number: 15). In the past, the operating system and all systems that used a time base had to have a hardware timer to generate the required "tick" interrupt as the time base for the entire system. The tick
[Microcontroller]
STM32 Getting Started: GPIO
I have been using STM32 for a while. I felt it was difficult to get started and I didn't know where to start. Now I have learned a little bit and I would like to share it with you.
First of all, what is GPIO? The answer to this question is that I don’t know either! At least I don’t need to know it for no
[Microcontroller]
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- 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
MoreDaily News
- 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
Guess you like