当前位置:网站首页>MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
MCU IO explanation (pull-up pull-down quasi bidirectional input / output push-pull open drain)
2022-06-25 07:11:00 【It student lkc】
General SCM will provide pull-up and pull-down functions :
Pull up : The signals of uncertainty , Fixed at high level , Power Supply The resistance to the device pin is called pull-up resistance , The function is to use this pin for high level at ordinary times , Pull up is to inject current into the device , Instant current

The drop-down : The signals of uncertainty , Fixed to site level , The earth The resistance to the device pin is called pull-down resistance , The function is to make the pin low at ordinary times , Pull down is the output current from the device , I.e. pull current

Input :

Pull up input : The uncertain signal is embedded at the high level through a resistor
Drop down input : Pull the voltage down , Pull to GND, Pull the uncertain signal to the low level
Enter the float : Susceptible to interference , The detection level is variable
simulation : Traditional input , Digital to analog conversion
Schmidt input : Prevent circuit interference
The disadvantage of the basic circuit is that jitter will occur when reading the jump edge of the external signal , Schmidt trigger solves the above jitter problem

Three state input :
Three state circuit can provide three different output values : Logic “0”, Logic “1” And high resistance state
High level Low level High resistance
Output :
The difference between multiplexed push-pull and push-pull output :
Push pull multiplexing Without going through the output data register (ODR). If push-pull output is used , Then the pin level is directly controlled by ODR control , For example, if the serial port is not a multiplexed push-pull interface, it will directly have a ODR Not controlled by usart Peripheral control
Push pull output : Generally, it is push-pull output , True output high and low
Push pull output features :
The pull-down of this configuration is the same as the quasi two-way port and open drain configuration , It has strong pulling current ability , The difference is , Have a lasting Strong pull up , Whether it has strong high-level or low-level driving ability

Open drain output :
Less common , If as a logic output , May be I2C, You need to pull up the resistor
Turn off all pull-up transistors , Only the pull-down transistor is driven , The pull-down configuration is the same as that of the quasi two-way port , Therefore, only low level can be output ( Absorbing current ), And high resistance state . Cannot output high level ( The current is also transmitted )

Quasi two-way port :
When IO The output is high , Its driving ability is very weak , External load can easily pull it to low level .
When IO The output is low , Its driving ability is very strong , It can absorb considerable current
The quasi two-way port can only effectively read 0, And yes 1 The method of reading non-zero , When reading in, you should first ask io Write on 1, read
True two-way io It can be read directly without any pre operation
When the quasi two-way port is used as input , Through a Schmidt trigger and a non gate , For interference and filtering .
When the quasi two-way port is used as input , The button can be grounded , Here's the picture 1, Of course, you can also remove R1 Directly connect the button , When the key is closed , Port is pulled to low level , When the key is released , The port is internally “ Extremely weak upper
PULL ” The transistor is pulled to the high level . When the port is output , It shall not be externally connected to the ground LED Such as graphic control , In this way, the drive capability of the port is very weak ,LED Only a very weak light , If you want to drive LED, Use figure
3 Methods , In this way, when the output of the quasi two-way port is low , Absorbable 20mA Current , Therefore, it can drive LED. chart 4 The method of , however LED When it doesn't glow , The port should absorb and receive a large amount of current .

边栏推荐
- 【工具分享】一款颜值与技能并重的软件
- Derivation of sin (a+b) =sina*cosb+sinb*cosa
- Americo technology launches professional desktop video editing solution
- 活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭
- Are you still doing the dishes yourself? Teach you how to make dishwasher controller with single chip microcomputer
- Lotus v1.16.0-rc2 Calibration net
- Torchserve pit avoidance Guide
- 1W words | 40 pictures | hard core es actual combat
- Blue Bridge Cup SCM module code (nixie tube) (code + comments)
- Esp8266 & sg90 steering gear & Lighting Technology & Arduino
猜你喜欢

Acwing / 2004. Mauvaise écriture

2022 biological fermentation Exhibition (Jinan), which is a must read before the exhibition. The most comprehensive exhibition strategy will take you around the "fermentation circle"

有能力的人从不抱怨大环境!

Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype‘)

父爱的表达方式

Streamnational platform version 1.5 is released, integrating istio and supporting openshift deployment
![[learn shell programming easily]-5. Plan tasks](/img/6f/8067d4201f0c2e7a692d89885e3ad9.png)
[learn shell programming easily]-5. Plan tasks

Drawing shp files using OpenGL

Hongmeng learning notes: creating layouts using XML

我们不一样
随机推荐
Power representation in go language
How do I know if mysqlnd is an active driver- How to know if MySQLnd is the active driver?
Baidu map - introductory tutorial
Why use NoSQL with MySQL?
CTFHub-Web-信息泄露-目录遍历
Cloning and importing DOM nodes
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热来袭
Your local changes to the following files would be overwritten by merge: . vs/slnx. sqlite
The most basic difference between clustering and classification.
Streaming a large file using PHP
Lotus windowsost manually triggers space-time proof calculation
Efficient exploration | an application practice of ES geographical location query
The significance and proof of weak large number theorem
【一起上水硕系列】Day 5
Wow, it's so rich.
Which securities company do you want to buy stocks to open an account faster and safer
Derivation of sin (a-b) =sina*cosb-sinb*cosa
Change the current count of auto increment values in MySQL- Changing the current count of an Auto Increment value in MySQL?
Jameswebb Space Telescope goes into operation to help study interstellar objects
Leetcode 2163. Minimum difference of sum after element deletion