Home > other >  Stm32 serial port communication, why to receive pin set the input mode, the input pin set receiving
Stm32 serial port communication, why to receive pin set the input mode, the input pin set receiving

Time:10-03

When newbie on the road, in a serial port communication, found that atomic mini plate for the receiving of serial port pin pa9, send for pa10, according to the receive pin configuration mode, send a pin set delivery mode, found with serial assistant can't receive, and when use pa9 output, pa10 receiving, can again, and the board schematic diagram in pa9 is receiving pins, pa10 is sent, even also said the receive with images, the output with the output, is this why? Request bosses solutions

CodePudding user response:

I remember that there is whether can set will receive UART register send pin switch, you look at the corresponding register is introduced

CodePudding user response:

I guess atomic receive send not relative MCU, but relative to the PC,
For MCU PA9 is TX, PA10 is RX

CodePudding user response:

reference 1st floor dceacho response:
I remember that there is can set the UART register will receive send pin switch, you look at the introduction under the corresponding register

What do you think? don't know where

CodePudding user response:

refer to the second floor forget345 response:
I guess atomic receive send not relative MCU, but relative to the PC,
For MCU PA9 is TX, PA10 is RX

This explanation, also seems to work,

CodePudding user response:

2 floor of speculation is the solution, such as the second floor, for MCU PA9 TXPA10 RX, so "PA9 on board schematic diagram is receiving pins, pa10 is sent" the corresponding is connecting to the PC serial port line sequence - PA9 plug in a serial of pa10 receive pin to send the pin,

CodePudding user response:


But like the second floor may be named

CodePudding user response:

Initialization time on software, the pin is not distinguish between sending and receiving pin, operated by the register is very clear to this point, is the same, in addition to pull up and down and pin speed can also be set up casually, just to make library too, let a person think too complicated,
On the hardware connection, the TX and RX MCU, and communication equipment of the TX and RX and tuning is,

CodePudding user response:

Positive solution to the second floor, it is a main problem, the manual is given priority to with 32 chip, and is a peripheral circuit on schematic diagram is given priority to,

CodePudding user response:

refer to 7th floor dceacho response:

But like the second floor may be named problems

This figure is what mean?

CodePudding user response:

refer to 7th floor dceacho response:

But like the second floor may be named problems

This is feeding can't hair change

CodePudding user response:

11 references weixin_44164556 response:
Quote: refer to 7th floor dceacho response:

But like the second floor may be named problems

This is feeding can't hair change

Disable is not changing, according to the data sheet on the transceiver to
The Enable is internal transceiver line change

CodePudding user response:

refer to 7th floor dceacho response:

But like the second floor may be named problems

Bosses, this looks not like data manual, can I ask where to find the

CodePudding user response:

reference 13 floor weixin_38363390 reply:
Quote: refer to 7th floor dceacho response:


But like the second floor may be named problems

Bosses, this looks not like a data sheet, can you ask where to find the

STM32CubeMX have their website
  • Related