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.

[51] uart communication betwwen two microcontroller

Status
Not open for further replies.

Sudhp

Member level 4
Member level 4
Joined
Oct 11, 2013
Messages
69
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Location
India
Visit site
Activity points
528
Hi everyone....
I am working on a project havin two 89s52 microcontrllers using uart comm....
I am able to send conditions of ports of slave micro to master....
Is there possibility to send a string from slave to master....
If yes than please suggest me what I have to do for this.....
 

hello,

some items to explore...

Do you need full duplex .... or half duplex ?
use UART interrupt for receiving char , and a circular buffer to store them.
use flags or protocole to manage the exchange of data
Simplex link STX, ETX,ACK,NACK
or XON XOFF protocol
or with hardware , but need more than TX and RX lines ( CTS,RTS extra lines to manage)
...
 

You have Rx and Tx pins on mcu.
Just have to connect Tx on mcu1 with Rx on mcu2 and vice versa (Rx on mcu1 with Tx mcu2).
Both mcu uses TTL level for serial port, so no additional hardware is needed.

Protocol is up to your needs and imagination...


Mr.Cube
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top