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
  • "Ur right"

    Please don't do that!

    "i have to implement two serial port one for PC and other for MCU."

    As Erik pointed out, there are alternatives for the interprocessor comms.
    But, if you want to use an asynchronous (UART) serial link, then you will need a second UART.

    "How will communicating with slaves.its timer intruup driven or how?"

    Just choose a device with two UARTs - it will have a second serial interrupt for the second UART!

Reply
  • "Ur right"

    Please don't do that!

    "i have to implement two serial port one for PC and other for MCU."

    As Erik pointed out, there are alternatives for the interprocessor comms.
    But, if you want to use an asynchronous (UART) serial link, then you will need a second UART.

    "How will communicating with slaves.its timer intruup driven or how?"

    Just choose a device with two UARTs - it will have a second serial interrupt for the second UART!

Children