当前位置:网站首页>STM32 GPIO CSDN creative punch in
STM32 GPIO CSDN creative punch in
2022-07-03 23:50:00 【Freeze memory 1024】
GPIO Structure diagram 
Push pull output (0-3.3):
Enter High level when , At the top of the P-MOS Conduction , At the bottom of the N-MOS end , External output High level .
Enter Low level when ,N-MOS The pipe is open ,P-MOS end , External output Low level .
When the pin level switches between high and low , Two pipes turn on ,P The tube is responsible for filling the current ,N The tube is responsible for pulling the current , The load capacity and switching speed are greatly improved compared with ordinary methods . The low level of push-pull output is 0 v , The high level is 3.3 v .
Open drain output (0-5):
In open drain output mode , At the top of the P-MOS The tube is always in the cut-off state . When the input power is low ,P-MOS Pipe cut off ,N-MOS The pipe is open , External output low level .
If the control input is high , be P-MOS The tube is closed ,N-MOS The tube is in the cut-off state , So the pin neither outputs high level , It doesn't output low level either , It's a high resistance state . Output high level if necessary (5V), A pull-up resistor must be connected externally .
It has “ Line and ” characteristic . in other words , If there are many open drain mode pins connected together , Only if all the pins output high resistance state , The pull-up resistor provides the high level , 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 low , Then the line is equivalent to a short circuit to ground , Make the whole line low ,0 v .
Output data register :
The above mentioned double MOS The input signal of the tube structure circuit , By GPIO“ Output data register “GPIOx_ODR” Provided , So we can modify it by modifying the value of the output data register GPIO The output level of the pin .
Reuse function output
“ Reuse function output ” Medium “ Reuse ” Refer to STM32 Other on-chip peripherals of GPIO Pin control , here GPIO The pin is used as part of the peripheral , Second use . From other peripherals “ Multiplexing function output signal ” And GPIO Its own data registers are connected to the double MOS In pipe structure , The ladder structure on the way is used as the switch switching selection .
For example, we use USART Serial communication , You need to use something GPIO The pin is used as the communication transmission pin , At this time, we can GPIO The pins are configured to USART Serial port multiplexing function , The pin is controlled by the serial peripheral , send data .
边栏推荐
- Iclr2022: how does AI recognize "things I haven't seen"?
- Current detection circuit - including op amp current scheme
- D26: the nearest number (translation + solution)
- 2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
- Investment demand and income forecast report of China's building ceramics industry, 2022-2028
- 在恒泰证券开户怎么样?安全吗?
- Double efficiency. Six easy-to-use pychar plug-ins are recommended
- Interpretation of corolla sub low configuration, three cylinder power configuration, CVT fuel saving and smooth, safety configuration is in place
- Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
- Ramble 72 of redis source code
猜你喜欢

Pyqt5 sensitive word detection tool production, operator's Gospel
![P3371 [template] single source shortest path (weakened version)](/img/c5/bcb22e1ea573253005e56ebbd73bb7.jpg)
P3371 [template] single source shortest path (weakened version)

2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination

Kubedl hostnetwork: accelerating the efficiency of distributed training communication

Briefly understand the operation mode of developing NFT platform

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?

Fluent learning (4) listview

Report on the construction and development mode and investment mode of sponge cities in China 2022-2028

Schematic diagram of crystal oscillator clock and PCB Design Guide

Interpretation of corolla sub low configuration, three cylinder power configuration, CVT fuel saving and smooth, safety configuration is in place
随机推荐
Apple released a supplementary update to MacOS Catalina 10.15.5, which mainly fixes security vulnerabilities
Smart fan system based on stm32f407
Loop compensation - explanation and calculation of first-order, second-order and op amp compensation
Schematic diagram of crystal oscillator clock and PCB Design Guide
Recursive least square adjustment
Maxwell equation and Euler formula - link
股票开户最低佣金炒股开户免费,网上开户安全吗
How to quickly build high availability of service discovery
股票开户佣金最低的券商有哪些大家推荐一下,手机上开户安全吗
What are the securities companies with the lowest Commission for stock account opening? Would you recommend it? Is it safe to open an account on your mobile phone
2022 system integration project management engineer examination knowledge points: software development model
Selenium library 4.5.0 keyword explanation (I)
2022.02.14
Selenium check box
Interesting 10 CMD commands
How to quickly build high availability of service discovery
D30:color tunnels (color tunnels, translation)
How will the complete NFT platform work in 2022? How about its core functions and online time?
D26: the nearest number (translation + solution)
Fluent learning (4) listview