6204 views|10 replies

968

Posts

0

Resources
The OP
 

How to set a pin to high impedance [Copy link]

邀请:@maychang   @chunyang   @damiaa   @vincentc543   参与回复

There are several issues regarding high impedance state:

1. Does high impedance state refer to input or output?

2. Are the ways to set the pins of STM32 and 8051 to high-impedance state the same? What are the specific setting methods?

Thank you all

This post is from stm32/stm8

Latest reply

"High impedance state" is one of the states of the three-state gate in the digital circuit, that is, "off". After being set to "high impedance state", the states of the two ends are not affected by each other with the three-state gate as the boundary. Don't ask this kind of question in the future. If you want to enter the industry, start learning from analog electronics and digital electronics. The current industry is seriously involuted and you can't accomplish anything without being down-to-earth.   Details Published on 2022-5-30 13:45
 

2w

Posts

0

Resources
2
 

『1. Does high impedance state refer to input or output?』

The high impedance state must refer to the input and cannot refer to the output.

This post is from stm32/stm8
 
 

2w

Posts

0

Resources
3
 

『2. How to set the pins of STM32 and 8051 to high impedance in the same way?』

The 8051 does not have a high-impedance state, and there is no way to set it.

This post is from stm32/stm8
 
 

114

Posts

6

Resources
4
 
This post was last edited by vincentc543 on 2022-5-29 22:21

The reference ST data is set as follows

#define GPIO_MODE_INPUT MODE_INPUT /*!< Input Floating Mode
void FLOATING_GPIO_Config(void)
{
GPIO_InitTypeDef GPIO_InitStruct = {0};
GPIO_InitStruct.Pin = GPIO_INPUT_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT; //<=Floating
GPIO_InitStruct .Pull = GPIO_NOPULL; // < = Set No pull up and down
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
}

This post is from stm32/stm8
 
 
 

148

Posts

0

Resources
5
 

ST32 input can usually be set to digital or analog. Only when it is set to digital can it be set to high impedance. It can also be set to TTL or CMOS. As far as I understand it, CMOS is high impedance.

The output can be set to high impedance. The output setting is relatively complicated. Different sequences have different methods. It is set using internal registers.

In the previous article, the table on page 7 gives an introduction.

en.CD00185009.pdf

308.82 KB, downloads: 23

This post is from stm32/stm8
 
 
 

114

Posts

6

Resources
6
 

As Master Maychang said, high impedance cannot be output.

The electrical concept of high impedance output is that the circuit is broken, and the output control backend cannot be controlled if the circuit is broken.

ST GPIO output only has Open Drain and Push Pull modes

This post is from stm32/stm8
 
 
 

148

Posts

0

Resources
7
 

There is at least one Tri mode (three-state), which is high impedance. It is used for low-power applications to save chip power consumption.

You can take a look at the copy form I gave you last time.

This post is from stm32/stm8
 
 
 

148

Posts

0

Resources
8
 

Of course, you are right. In the normal "working" state, it is impossible to break the circuit. It is just because of the low power consumption requirement that the Xitong has to enter a non-working state (sleep)

This post is from stm32/stm8
 
 
 

148

Posts

0

Resources
9
 

To add, the three-state design should appear before the low power consumption requirement. Sometimes when several driving sources are used to drive the same target, the others should be set to three-state and only one should be left "working".

This post is from stm32/stm8
 
 
 

1w

Posts

142

Resources
10
 

Read the device manual carefully. If you read it carefully, you won't have to ask those two questions.

This post is from stm32/stm8
 
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
 
 

2865

Posts

4

Resources
11
 

"High impedance state" is one of the states of the three-state gate in the digital circuit, that is, "off". After being set to "high impedance state", the states of the two ends are not affected by each other with the three-state gate as the boundary. Don't ask this kind of question in the future. If you want to enter the industry, start learning from analog electronics and digital electronics. The current industry is seriously involuted and you can't accomplish anything without being down-to-earth.

This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list