Understanding of STM32 IO output mode

Publisher:素心轻语Latest update time:2018-08-27 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
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.


Keywords:STM32 Reference address:Understanding of STM32 IO output mode

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 external door dog (iwdg)
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]
STM32 enables Bootloader support configuration
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]
STM8S---IO multiplexing of option byte write operation
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 study notes-SysTick
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]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components
Guess you like

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号