7026 views|9 replies

970

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
 

6773

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
 
 

970

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上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 

6773

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
 
 
 

6060

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

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