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.....
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.