当前位置:网站首页>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
边栏推荐
- tp6快速安装使用MongoDB实现增删改查
- 数学知识:台阶-Nim游戏—博弈论
- Why is it not recommended to use BeanUtils in production?
- Using tensorboard to visualize the model, data and training process
- Swiftui component Encyclopedia: using scenekit and swiftui to build interactive 3D pie charts (tutorial with source code)
- [技术发展-23]:DSP在未来融合网络中的应用
- What is tone. Diao's story
- [机缘参悟-36]:鬼谷子-飞箝篇 - 面对捧杀与诱饵的防范之道
- C#应用程序界面开发基础——窗体控制(4)——选择类控件
- Tâche 6: regroupement DBSCAN
猜你喜欢

C#应用程序界面开发基础——窗体控制(1)——Form窗体

High resolution network (Part 1): Principle Analysis

【数据挖掘】任务4:20Newsgroups聚类

一比特苦逼程序員的找工作經曆
![[FPGA tutorial case 6] design and implementation of dual port RAM based on vivado core](/img/fb/c371ffaa9614c6f2fd581ba89eb2ab.png)
[FPGA tutorial case 6] design and implementation of dual port RAM based on vivado core

Using tensorboard to visualize the model, data and training process
![[Androd] Gradle 使用技巧之模块依赖替换](/img/5f/968db696932f155a8c4a45f67135ac.png)
[Androd] Gradle 使用技巧之模块依赖替换

wirehark数据分析与取证A.pacapng

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
![[androd] module dependency replacement of gradle's usage skills](/img/5f/968db696932f155a8c4a45f67135ac.png)
[androd] module dependency replacement of gradle's usage skills
随机推荐
测试右移:线上质量监控 ELK 实战
【C语言】指针与数组笔试题详解
VIM 9.0 is officially released! The execution speed of the new script can be increased by up to 100 times
[my advanced journey of OpenGL learning] collation of Euler angle, rotation order, rotation matrix, quaternion and other knowledge
Do not log in or log in to solve the problem that the Oracle database account is locked.
QTableWidget懒加载剩内存,不卡!
Related concepts of GDB in embedded system
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
一位苦逼程序员的找工作经历
CF1617B Madoka and the Elegant Gift、CF1654C Alice and the Cake、 CF1696C Fishingprince Plays With Arr
MySQL foundation 05 DML language
C language course information management system
Mathematical Knowledge: Steps - Nim Games - Game Theory
【数据挖掘】任务4:20Newsgroups聚类
[Androd] Gradle 使用技巧之模块依赖替换
Three core issues of concurrent programming - "deep understanding of high concurrent programming"
C application interface development foundation - form control (1) - form form
ThinkPHP+Redis实现简单抽奖
看完这篇 教你玩转渗透测试靶机Vulnhub——DriftingBlues-9
[understanding of opportunity -36]: Guiguzi - flying clamp chapter - prevention against killing and bait