当前位置:网站首页>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 .
边栏推荐
- Kubedl hostnetwork: accelerating the efficiency of distributed training communication
- Gorilla/mux framework (RK boot): add tracing Middleware
- China standard gas market prospect investment and development feasibility study report 2022-2028
- 2022 chemical automation control instrument examination content and chemical automation control instrument simulation examination
- NPM script
- Gossip about redis source code 74
- 2.14 summary
- Idea a method for starting multiple instances of a service
- Make small tip
- Gossip about redis source code 77
猜你喜欢

Smart fan system based on stm32f407

Deep learning ----- using NN, CNN, RNN neural network to realize MNIST data set processing
![[source code] VB6 chat robot](/img/89/46b67f627c8257eaddc70a247c9ba5.jpg)
[source code] VB6 chat robot
![[network security] what is emergency response? What indicators should you pay attention to in emergency response?](/img/ff/c733ffbb922760910ab09af3ae2886.jpg)
[network security] what is emergency response? What indicators should you pay attention to in emergency response?

Solve the problem that the kaggle account registration does not display the verification code

China standard gas market prospect investment and development feasibility study report 2022-2028

SPI based on firmware library

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
![Docking Alipay process [pay in person, QR code Payment]](/img/30/665580241020ee3adb872e725f0624.jpg)
Docking Alipay process [pay in person, QR code Payment]

Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
随机推荐
[note] IPC traditional interprocess communication and binder interprocess communication principle
Gossip about redis source code 79
Correlation analysis summary
Design of logic level conversion in high speed circuit
Unity shader visualizer shader graph
SPI based on firmware library
D27:mode of sequence (maximum, translation)
Analysis of refrigeration and air conditioning equipment operation in 2022 and examination question bank of refrigeration and air conditioning equipment operation
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
[source code] VB6 chat robot
FPGA tutorial and Allegro tutorial - link
Gossip about redis source code 75
P1656 bombing Railway
JarPath
Yyds dry goods inventory three JS source code interpretation - getobjectbyproperty method
Minimum commission for stock account opening. Stock account opening is free. Is online account opening safe
D29:post Office (post office, translation)
Pytorch learning notes 5: model creation
How to make recv have a little temper?
[MySQL] sql99 syntax to realize multi table query