Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/24/05 13:59
Read: times


 
#104119 - More info M.I.N.E.S.T.O.N.Y. Comms :-)
Responding to: ???'s previous message
Charles Bannister said:
Hello Tony,

Can you share some more information about your Multiprocessor communications system.

1. Use 2 I/O pins on each controller so that its identification can be set (of course use 3 I/O pins and select up to 8 devices, etc.).
Question.
Do you select each 89C4051 using a separate output pin from the IBM PC?
What do you mean 3 I/O pins select 8 devices (74LS138)?

2. Connect all RX pins of the microcontrollers together and all TX pins together with suitable pull-ups.
Question.
Do the TX outputs have open collector outputs (or high impedance outputs)?
How do you avoid the output of the RS232 fighting each other?

3. Now you can treat the RX and TX as if it were 1 device and put these 2 signals through appropriate buffers so that they can be connected to the PC. Simple transistor inverters will work quite well unless going over long distances.

I can see how each 89C4051 would act as one unit although three are actually hooked up in parallel if there was another signal telling each one to awaken (at the proper time) and the TX output were open collector.

Regards,

Charles Bannister



Hi Charles,
Re: Your question #1
Each of the 4051 micros needs to have an identity, so that when the PC sends out a command via its serial RS232 port to ALL slaves, each one needs to know when it is being addressed. So that the identity for each slave does not have to be in its code, each slave will read the state of the I/O pins used for identification. For example, if we use P1.7 and P1.6 for addressing the slaves, then the 4051 which has P1.7 = 0 and P1.6=0 would be slave #1. The 4051 which has P1.7=0 and P1.6 = 1 would be slave #2 and so on.......
Since we have used only 2 I/O pins of the 4051, then we can only address up to 4 slaves. If we have more than 4 slaves, then use P1.5 and an address input also. This will now allow up to 8 slaves to be addressed etc. etc.

Re: Your question #2
The TX output of the 4051, (TXD), has an internal pull-up. See the 4051 specifications for maximum current which the pin can sink and select appropriate pull-up if necessary. I have used more than 9 dirivitives of the 51 and they are all similar, (but can have different current sink ability).
Since each of the slaves can be uniquely addressed, then each slave 'will speak only when spoken to'. This means that there will be no conflict on the TXD. Using a more complex protocol, each slave could have the ability to initiate a response from the master.

Re: Your question #3
I am not sure what you mean. Using this system all slaves are awake at the same time. They all get the same message, but within that message an identifier is sent to address ONE particular slave. It is that slave ONLY which then sends the required data back to the master.

Cheers,
Tony

PS
N.B.
The RXD and the TXD pins are NOT all tied together as some may have interpreted.



List of 55 messages in thread
TopicAuthorDate
Home System            01/01/70 00:00      
   X10 ?            01/01/70 00:00      
   1-Wire?            01/01/70 00:00      
      Multiprocessor communcations            01/01/70 00:00      
   home system            01/01/70 00:00      
   Another Maxim - HomePlug            01/01/70 00:00      
   Simple RS232 multidrop            01/01/70 00:00      
      a dangerous approach            01/01/70 00:00      
         NOT dangerous if you read properly            01/01/70 00:00      
            So it's NOT RS232, then            01/01/70 00:00      
               Ohhh No! ..... Not RS232?            01/01/70 00:00      
                  That you get by with violating the stand            01/01/70 00:00      
                     To RS232 or not to RS232            01/01/70 00:00      
                        well, now you have both            01/01/70 00:00      
                  No Trick            01/01/70 00:00      
                  That's what I said!            01/01/70 00:00      
            dont take it personally            01/01/70 00:00      
               I won't            01/01/70 00:00      
                  on reliability etc.            01/01/70 00:00      
                     true, but...            01/01/70 00:00      
                        time is $$$            01/01/70 00:00      
                           Not bible!            01/01/70 00:00      
                        "bible" - Read, not memorise!            01/01/70 00:00      
                        Jeff, grow some skin!            01/01/70 00:00      
                        Paid help            01/01/70 00:00      
                           I agree            01/01/70 00:00      
                              Oh I am grateful            01/01/70 00:00      
               Indeed            01/01/70 00:00      
                  If this is a "put down" then I must need            01/01/70 00:00      
                     Blah blah blah            01/01/70 00:00      
                        flamewars, episode 3            01/01/70 00:00      
                  Toys !            01/01/70 00:00      
                     slobodan            01/01/70 00:00      
                        Arrogance            01/01/70 00:00      
                           totally misunderstood            01/01/70 00:00      
                              It's here            01/01/70 00:00      
                                 sorry, I do not have ESP            01/01/70 00:00      
                                    How would that help?            01/01/70 00:00      
      Long distances            01/01/70 00:00      
      Questions about your Multi MPU comm.            01/01/70 00:00      
         UART Mode 3            01/01/70 00:00      
            Re: El-cheapo home network            01/01/70 00:00      
               as dangerous and noise prone as the othe            01/01/70 00:00      
                  not "open air"            01/01/70 00:00      
                     well, I missed that, sorry            01/01/70 00:00      
                     ring protection            01/01/70 00:00      
         More info M.I.N.E.S.T.O.N.Y. Comms :-)            01/01/70 00:00      
      You must lead a very quiet life            01/01/70 00:00      
         Don't get personal            01/01/70 00:00      
      may be dangerous            01/01/70 00:00      
         RS485            01/01/70 00:00      
            RS485 addendum            01/01/70 00:00      
               RS485 only specifies the media            01/01/70 00:00      
                  Multiprocessor Mode            01/01/70 00:00      
                     comments/clrafications            01/01/70 00:00      

Back to Subject List