Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

full duplex connection with RS232 with LPC or STM32

Status
Not open for further replies.

baby_2

Advanced Member level 4
Joined
Jul 20, 2016
Messages
105
Helped
2
Reputation
4
Reaction score
1
Trophy points
18
Activity points
873
Hello
I want to know how can it possible to have a full duplex communication in ARM MCU series with RS232?
Could you give me some good references that they introduce good explanations?
 

Hi,

your post doesn´t show any problem. And I don´t see any.

***
you need one signal wire from device1 to device2
and one signal wire from device 2 to device1.

Both devices can send and receive at the same time.

Klaus
 

Thanks dear Klaus
As I know the cpu can do one job at the same time ( send or read data).I want to know how can we send data and receive it at the same time?
 

I think that the confusion is thinking that the term "full duplex" refers to the CPU. Full duplex refers to the transmission line.
Generally this is a dial up or broad band telephone line which is a single wire. In half duplex, communication is done in one direction at a time, both on the same carrier frequency. In full duplex transmission is done in both directions at the same time using 2 different carrier frequencies on the same wire.
If the CPU is running faster than the serial transmission speed of the communication line, and with the help of UARTS, it has time to send and receive data and still stay ahead of the baud rate.
 
Last edited:
  • Like
Reactions: baby_2

    baby_2

    Points: 2
    Helpful Answer Positive Rating
Thanks FenTrac
So it is impossible to read and send data at the same time ? I want to design a interface board that can control on input and output without any loss.
what is best way to control on data?
 

All stm32 has independend registers for TX and RX. So, full duplex is available by default. What is your problem?
 

Hi,

There is a UART periferal in your microcontroller.
With 115200 baud sending of one byte takes about 100us.
For sure receiving takes the same time.

But transferring one byte from the cpu to the UART takes less than 1 us. So the cpu has plenty of time to perform other tasks.

Klaus
 
  • Like
Reactions: baby_2

    baby_2

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top