6868 views|9 replies

968

Posts

0

Resources
The OP
 

I would like to ask, when a port is set to RX0, is it necessary to set the input and output direction of this port? [Copy link]

邀请:@led2015   @vincentc543   @吾妻思萌   @wangerxian   参与回复

I would like to ask, when a port is set to RX0, is it necessary to set the input and output direction of this port? Do I need to set its pull-up and pull-down?

This post is from stm32/stm8

Latest reply

The multiplexing function is a pure hardware circuit, which automatically switches the relevant internal hardware switches to the corresponding circuits.   Details Published on 2024-5-22 11:34
 

6742

Posts

2

Resources
2
 

If you multiplex into the RX mode of the serial port, you don't need to set the pull-up and pull-down.

This post is from stm32/stm8

Comments

Thank you very much. Do I need to set the input and output direction?  Details Published on 2023-8-11 15:09
 
 

968

Posts

0

Resources
3
 
wangerxian posted on 2023-8-11 13:33 If you reuse the RX mode of the serial port, you don’t need to set the pull-up and pull-down.

Thank you very much. Do I need to set the input and output direction?

This post is from stm32/stm8

Comments

No, you have set them to multiplexed pins.  Details Published on 2023-8-11 15:39
 
 

1w

Posts

142

Resources
4
 

No more setup required.

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

6742

Posts

2

Resources
5
 
Yishayishi published on 2023-8-11 15:09 Thank you very much. Do I need to set the input and output direction?

No, you have set them to multiplexed pins.

This post is from stm32/stm8
 
 
 

4817

Posts

4

Resources
6
 

When a port is set as RX0 (receiving port), its input and output directions need to be set according to the specific application scenario. If the port is only used to receive data, it can be set to the input direction and does not need to be set to the output direction. If the port needs to be used to send data in some cases, it needs to be set to the output direction in these cases.

This post is from stm32/stm8
 
 
 

5998

Posts

6

Resources
7
 

For RX0, you only need to set the pin to multiplexing function. However, different microcontrollers have different libraries, so pay attention to the selection.

This post is from stm32/stm8
 
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 

26

Posts

0

Resources
8
 

I just want to say it's very nice and great. I am very grateful for the blogger's sharing. Although I am just here to comment, I am also very grateful for the blogger's post.

This post is from stm32/stm8
 
 
 

351

Posts

3

Resources
9
 

The multiplexing function is a pure hardware circuit, which automatically switches the relevant internal hardware switches to the corresponding circuits. This is clearly explained in the chip manual. It can also be seen from the configuration of ST's CUBEMAX software that after you set the multiplexing function, the initialization code generally does not care about the input or output mode, nor does it care about pull-up and pull-down. It just sets the multiplexing mode to map to the corresponding hardware function.

This post is from stm32/stm8
 
 
 

56

Posts

0

Resources
10
 

The multiplexing function is a pure hardware circuit, which automatically switches the relevant internal hardware switches to the corresponding circuits.

This post is from stm32/stm8
 
 
 

Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Could you please help me see how to filter this switching power supply circuit?

As the title says, the ACDC switching power supply outputs 5V voltage through LDO. How to filter it next? Below is the ...

[Hua Diao DIY] Fast food box cover, a very low-cost experimental platform for building robot walking

This post was last edited by eagler8 on 2021-2-7 17:50 After eating the fast food porridge, in addition to the delicio ...

MS8211 Pen-Type Multimeter Disassembly

This post was last edited by dcexpert on 2022-2-4 16:55 I had nothing to do these few days, and I accidentally found th ...

My own feelings about simulation software

The most annoying thing about using LTspice is that it does not support mixed analog and digital simulation. Although it ...

About the defects of MOS switches

For example, when gs is 0, the current flowing from d to s can be blocked, but due to the presence of the parasitic diod ...

Oscillator Phase Noise and Frequency Stability

This book systematically introduces the theory of phase noise and frequency stability of oscillators, explains in depth ...

[HC32F4A0 development board review] + LED control based on I2C

There are three LED lights on the HC32F4A0 development board that cannot be controlled directly through the GPIO port be ...

Xiaomi responds to "Xiaomi Auto sales continue to decline": Delivery pressure is huge, and we are confident that we will deliver more than 10,000 cars this month

This post was last edited by wklwklwbh on 2024-6-15 09:27 According to Sanyan Technology on June 13, today, the topic # ...

"Time Analysis of Embedded Software" reading activity: 7 Chapter 7 Reading Notes - Software Time in Multi-core and Multi-ECU Environments

This chapter explains some knowledge and issues about software execution under multi-core or multi-ECU. The directory is ...

Practical knowledge! Detailed explanation of PWM control principle and circuit application

PWM (Pulse Width Modulation) is a technology that uses pulses to output analog signals. It modulates the width of a seri ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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