当前位置:网站首页>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
边栏推荐
- 【数据挖掘】任务6:DBSCAN聚类
- MySQL foundation 04 MySQL architecture
- 数学知识:台阶-Nim游戏—博弈论
- 【面试题】1369- 什么时候不能使用箭头函数?
- Qtablewidget lazy load remaining memory, no card!
- 海量数据冷热分离方案与实践
- Give you an array numbers that may have duplicate element values. It was originally an array arranged in ascending order, and it was rotated once according to the above situation. Please return the sm
- Steps to obtain SSL certificate private key private key file
- Database SQL language 01 where condition
- View of MySQL
猜你喜欢
Scheme and practice of cold and hot separation of massive data
【C语言】指针与数组笔试题详解
[my advanced journey of OpenGL learning] collation of Euler angle, rotation order, rotation matrix, quaternion and other knowledge
Summary of interval knowledge
[technology development-23]: application of DSP in future converged networks
High-Resolution Network (篇一):原理刨析
MySQL --- 数据库查询 - 基本查询
C#应用程序界面开发基础——窗体控制(1)——Form窗体
【数据挖掘】任务2:医学数据库MIMIC-III数据处理
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait
随机推荐
[QT] encapsulation of custom controls
音程的知识的总结
View of MySQL
英语常用词汇
Work experience of a hard pressed programmer
[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
Database SQL language 01 where condition
MySQL --- 数据库查询 - 条件查询
LDC Build Shared Library
The industrial scope of industrial Internet is large enough. The era of consumer Internet is only a limited existence in the Internet industry
Button wizard play strange learning - automatic return to the city route judgment
2022 coal mine gas drainage examination question bank and coal mine gas drainage examination questions and analysis
强化学习 Q-learning 实例详解
MySQL --- 数据库查询 - 基本查询
C#应用程序界面开发基础——窗体控制(3)——文件类控件
数学知识:Nim游戏—博弈论
Uniapp component -uni notice bar notice bar
【QT】自定义控件的封装
leetcode 2097 — 合法重新排列数对
Mathematical knowledge: Nim game game theory