当前位置:网站首页>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
边栏推荐
- [data mining] task 5: k-means/dbscan clustering: double square
- [技术发展-23]:DSP在未来融合网络中的应用
- MySQL - database query - basic query
- dotConnect for PostgreSQL数据提供程序
- Database SQL language 02 connection query
- Leetcode skimming questions_ Sum of two numbers II - enter an ordered array
- 【C语言】指针与数组笔试题详解
- C application interface development foundation - form control (2) - MDI form
- Leetcode 6103 - minimum fraction to delete an edge from the tree
- 简易分析fgui依赖关系工具
猜你喜欢
Leetcode 2097 - Legal rearrangement of pairs
Work experience of a hard pressed programmer
Arduino DY-SV17F自动语音播报
SSL flood attack of DDoS attack
【数据挖掘】任务4:20Newsgroups聚类
[my advanced journey of OpenGL learning] collation of Euler angle, rotation order, rotation matrix, quaternion and other knowledge
Using tensorboard to visualize the model, data and training process
力扣 204. 计数质数
【数据挖掘】任务5:K-means/DBSCAN聚类:双层正方形
leetcode 2097 — 合法重新排列数对
随机推荐
C#应用程序界面开发基础——窗体控制(1)——Form窗体
C#应用程序界面开发基础——窗体控制(3)——文件类控件
2022 Jiangxi Provincial Safety Officer B certificate reexamination examination and Jiangxi Provincial Safety Officer B certificate simulation examination question bank
软考信息系统项目管理师_历年真题_2019下半年错题集_上午综合知识题---软考高级之信息系统项目管理师053
Scheme and practice of cold and hot separation of massive data
【系统分析师之路】第五章 复盘软件工程(开发模型开发方法)
【第29天】给定一个整数,请你求出它的因子数
[技术发展-23]:DSP在未来融合网络中的应用
MySQL foundation 07-dcl
String splicing function of MySQL
uniapp组件-uni-notice-bar通告栏
MySQL basics 03 introduction to MySQL types
JDBC courses
给你一个可能存在 重复 元素值的数组 numbers ,它原来是一个升序排列的数组,并按上述情形进行了一次旋转。请返回旋转数组的最小元素。【剑指Offer】
Meituan dynamic thread pool practice ideas, open source
MySQL - database query - basic query
SSL flood attack of DDoS attack
Database SQL language 02 connection query
[C language] detailed explanation of pointer and array written test questions
[technology development-23]: application of DSP in future converged networks