Open drain circuit and push-pull output of stm32

Publisher:码农闲散人Latest update time:2016-07-18 Source: eefocusKeywords:stm32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
================================================== === 

           Open drain structure

         The "drain" mentioned in the concept of the so-called open-drain circuit refers to the drain of the MOS FET. Similarly, the "collector" in the open-collector circuit refers to the collector of the transistor. The open-drain circuit refers to a circuit with the drain of the MOS FET as the output. The general usage is to add a pull-up resistor to the circuit outside the drain. The complete open-drain circuit should be composed of an open-drain device and an open-drain pull-up resistor. As shown in Figure 1:

STM32 open drain circuit and push-pull output - armplc - armplc blog

              figure 1

 The circuits that form the open-drain form have the following characteristics:
1. Utilize the driving capability of the external circuit to reduce the internal driving of the IC. When the internal MOSFET of the IC is turned on, the driving current flows from the external VCC through R pull-up, MOSFET to GND. The IC only needs a very low gate driving current. As shown in Figure 1.
2. Multiple open-drain output pins can be connected to one line. Form an "AND logic" relationship. As shown in Figure 1, when any one of PIN_A, PIN_B, and PIN_C becomes low, the logic on the open-drain line is 0. This is also the principle of I2C, SMBus and other buses to determine the bus occupancy status.
3. The transmission level can be changed by changing the voltage of the pull-up power supply. As shown in Figure 2, the logic level of the IC is determined by the power supply Vcc1, and the output high level is determined by Vcc2. In this way, we can use low-level logic to control the output high-level logic.
4. If the open-drain pin is not connected to an external pull-up resistor, it can only output a low level.
5. The standard open-drain pin generally only has output capabilities. Only by adding other judgment circuits can the ability of bidirectional input and output be achieved.

STM32 open drain circuit and push-pull output - armplc - armplc blog

 

                                            figure 2
 

 Notes in application:
1. The principles of open drain and open collector are similar. In many applications, we use open collector circuits instead of open drain circuits. For example, an input pin is required to be driven by an open drain circuit. Then our common driving method is to use a transistor to form an open collector circuit to drive it, which is convenient and cost-saving. As shown in Figure 3.
2. The resistance value of the pull-up resistor R pull-up determines the speed of the edge of the logic level conversion. The larger the resistance value, the lower the speed and the lower the power consumption. Vice versa

STM32 open drain circuit and push-pull output - armplc - armplc blog
                                           image 3

 ================================================== ===

     The push-pull structure
             generally refers to two transistors that are controlled by two complementary signals respectively, and one transistor is always turned on while the other is turned off. To achieve line-and, an OC (open collector) gate circuit is required. If there are two transistors in the output stage, one is always turned on and the other is turned off, that is, the two transistors are connected in push-pull, and this circuit structure is called a push-pull circuit.

STM32 open drain circuit and push-pull output - armplc - armplc blog
Push-Pull Amplifier
STM32 open drain circuit and push-pull output - armplc - armplc blog
                Push-pull amplifier circuits are widely used in power amplifier circuits. In this circuit, two transistors are used to form a first-stage amplifier circuit. The two transistors respectively amplify the positive half-cycle and negative half-cycle of the input signal, that is, one transistor amplifies the positive half-cycle of the signal, and the other transistor amplifies the negative half-cycle of the signal. The half-cycle signals output by the two transistors are combined on the amplifier load to obtain an output signal of a complete cycle. 

  In a push-pull amplifier circuit, when one transistor is in the on and amplifying state, the other transistor is in the off state. When the input signal changes to another half cycle, the transistor that was originally on and amplifying enters the cut-off state, and the transistor that was originally cut-off enters the on and amplifying state. The two transistors are constantly alternating between on and off, so it is called a push-pull amplifier.

 

        The push-pull circuit consists of two triodes or MOSFETs with the same parameters, which exist in the circuit in a push-pull manner. Each of them is responsible for the waveform amplification task of the positive and negative half cycles. When the circuit is working, only one of the two symmetrical power switch tubes is turned on at a time, so the conduction loss is small and the efficiency is high.

         The output can both sink current to the load and draw current from the load.


Keywords:stm32 Reference address:Open drain circuit and push-pull output of stm32

Previous article:Description of STM32 BOOT pin configuration
Next article:Follow me to write ARM processor 2: Determination of the main structure

Recommended ReadingLatest update time:2024-11-15 17:47

STM32 Series Part 6 --NVIC Interrupt Priority Grouping
There are only 60 maskable interrupts on the STM32F103 series (68 on the 107 series).  Interrupt management method:  First, group the STM32 interrupts into groups 0 to 4. At the same time, set a preemption priority and a response priority value for each interrupt.  The group configuration is configured in register SCB
[Microcontroller]
STM32 Series Part 6 --NVIC Interrupt Priority Grouping
STM32 FLASH simple application
  The STM3210XXX embedded flash memory can be used for in-circuit programming (ICP) or in-process programming (IAP). It can also be used as flash memory to store data.   Main storage block: 4K×64 bits for small capacity products        16K×64 bits for medium capacity products        64K×64 bits for large capacity pr
[Microcontroller]
STM32 FLASH simple application
stm32——initialize serial port 1 and serial port 2
void USART1_Initialise(u32 bound) {         //GPIO端口设置         GPIO_InitTypeDef GPIO_InitStructure;         USART_InitTypeDef USART_InitStructure;         NVIC_InitTypeDef NVIC_InitStructure;         RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1|RCC_APB2Periph_GPIOA|RCC_APB2Periph_AFIO, ENABLE);         //USART1_TX   P
[Microcontroller]
Use of STM32 SPI DMA
First, I want to summarize the characteristics and precautions of the SPI bus, and second, summarize the use of SPI DMA 1. SPI signal line description   Usually SPI is connected to external devices through 4 pins: MISO: Master input/slave output pin. This pin sends data in slave mode and receives data in master
[Microcontroller]
Use of STM32 SPI DMA
STM32 USART library function introduction 2
The function of USART_Cmd is to enable or disable the USART serial port peripheral. Example: Enable USART1 USART_Cmd(USART1,ENABLE); The function of USART_ITConfig is to enable or disable the specified USART serial port interrupt. USART_IT_PE Parity Error Interrupt USART_IT_TXE Transmit interrupt USART_IT_
[Microcontroller]
STM32 I/O voltage tolerance and interrupt issues
STM32 I/O voltage tolerance problem STM32 I/O voltage tolerance problem      STM32 is not as the manual says, most of them are 5V resistant, please refer to the data sheet for details - I just believed what I saw on the Internet and made a mistake.      The I/O voltage resistance distribution of STM32f103c8 is as foll
[Microcontroller]
What is FMSC? Understanding the use of STM32 FMSC
 I have been looking at FMSC information for a long time but it is still vague. it's actually really easy: fsmc is used to expand memory. For example, if we add an sram chip outside the STM32 chip, we only need to connect the address line and data line of the sram chip to the STM32 , and then assign the address n
[Microcontroller]
What is FMSC? Understanding the use of STM32 FMSC
STM32 clock system review
1. References         "STM32F1 Development Guide - Library Function Version" - Section 4.3 Clock System         "STM32 Chinese Reference Manual V10" - Chapter 6 Reset and Clock Control RCC 2. Clock system summary      1. STM32 has 5 clock sources: HSI, HSE, LSI, LSE, and PLL.          ①. HSI is a high-speed internal
[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

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号