This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Master and Slave 89c51

Dear ALL
I want to help form your sit in following scenario.
I have 5 89c51 one is master and other 4 are slave. Mater can communicate with PC through serial port and Master can be communicating with other 4 89c51.Basically I am using 4 slave for expansion of IO pins.I an not understanding that when Master communication with PC how is communication with slave because Tx and Rx is connected with MAX-232.
Communication sanarios is some stream coming from PC Master Read the Stream and transmit a protocol to the slaves and slaves read the stream and targated slaves pick the information and send byte to his port .
My question is when Master is communicating with PC how is communication with slaves
Thanks.

Parents
  • "I an not understanding that when Master communication with PC how is communication with slave because Tx and Rx is connected with MAX-232."

    You need to use two separate serial ports on your "master" 8051 - one to communicate with the PC, and the other to communicate with the "Slave" 8051s.

    For the communications between the 8051s, look at the "multiprocessor" mode of the 8051 UART; see: http://www.keil.com/forum/docs/thread5457.asp

Reply
  • "I an not understanding that when Master communication with PC how is communication with slave because Tx and Rx is connected with MAX-232."

    You need to use two separate serial ports on your "master" 8051 - one to communicate with the PC, and the other to communicate with the "Slave" 8051s.

    For the communications between the 8051s, look at the "multiprocessor" mode of the 8051 UART; see: http://www.keil.com/forum/docs/thread5457.asp

Children