当前位置:网站首页>STM32 - GPIO input / output mode
STM32 - GPIO input / output mode
2022-07-03 01:36:00 【Spade fish】
GPIO I / O mode
List of articles
Eight modes of input and output
Floating input | Open drain output |
---|---|
Pull up input | Push pull output |
Drop down input | Push pull multiplexing |
Analog input | Open drain multiplexing |
1、 Pull up resistance : Connect the uncertain signal to the high level through resistance, and initialize the electrical signal to the high level
2、 Pull down resistance : Connect the uncertain signal to the low level through resistance, and initialize the electrical signal to the low level
Four input modes :
Pull up input :
By default, the input pin data is 1 High level
analog signal 3.3v 5v 1.9v
digital signal 0 1
Drop down input :
The default input pin is 0
Low level
Floating input
That is, the pin is not connected to high level or low level , That is, the input pin is floating
The pin voltage is an uncertain value , Usually used for IIC,USART
Analog input :
analog signal : 3.3v 5v 1.9v
digital signal : 0 1
Commonly used in AD transformation
Four output modes :
Open drain output :
Can output 0 and 1
It is suitable for occasions with mismatched levels
To get a high level, you need to pull up the resistor
Open drain multiplexed output :
Internal and external functions :
TX1,MOSI,MISO,SCK,SS
Push pull output :
Can output high and low level 0 and 1
Applicable to two-way IO Use
Push pull multiplex output
GPIO The configuration when the port is used as the second function
Of on-chip and off-chip functions IIC Of SCL,SDL
边栏推荐
- C application interface development foundation - form control (1) - form form
- Do not log in or log in to solve the problem that the Oracle database account is locked.
- Mathematical knowledge: step Nim game game game theory
- Leetcode 6103 - minimum fraction to delete an edge from the tree
- Arduino dy-sv17f automatic voice broadcast
- 英语常用词汇
- JUC thread scheduling
- [Cao gongzatan] after working in goose factory for a year in 2021, some of my insights
- QTableWidget懒加载剩内存,不卡!
- C#应用程序界面开发基础——窗体控制(2)——MDI窗体
猜你喜欢
Dotconnect for PostgreSQL data provider
传输层 TCP主要特点和TCP连接
Why can't the start method be called repeatedly? But the run method can?
CF1617B Madoka and the Elegant Gift、CF1654C Alice and the Cake、 CF1696C Fishingprince Plays With Arr
Scheme and practice of cold and hot separation of massive data
Niu Ke swipes questions and clocks in
SSL flood attack of DDoS attack
C#应用程序界面开发基础——窗体控制(1)——Form窗体
[Arduino experiment 17 L298N motor drive module]
Learn the five skills you need to master in cloud computing application development
随机推荐
Why can't the start method be called repeatedly? But the run method can?
[shutter] animation animation (the core class of shutter animation | animation | curvedanimation | animationcontroller | tween)
测试右移:线上质量监控 ELK 实战
Soft exam information system project manager_ Real topic over the years_ Wrong question set in the second half of 2019_ Morning comprehensive knowledge question - Senior Information System Project Man
VIM 9.0 is officially released! The execution speed of the new script can be increased by up to 100 times
The thread reuse problem of PageHelper using ThreadLocal, did you use it correctly?
Vim 9.0正式发布!新版脚本执行速度最高提升100倍
2022 cable crane driver examination registration and cable crane driver certificate examination
What is tone. Diao's story
Openresty cache
Main features of transport layer TCP and TCP connection
Is there anything in common between spot gold and spot silver
d,ldc构建共享库
[androd] module dependency replacement of gradle's usage skills
C application interface development foundation - form control (1) - form form
dotConnect for PostgreSQL数据提供程序
GDB 在嵌入式中的相关概念
Force buckle 204 Count prime
Scheme and practice of cold and hot separation of massive data
[shutter] animation animation (basic process of shutter animation | create animation controller | create animation | set value listener | set state listener | use animation values in layout | animatio