2 cable and more pic


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    May 2005
    Posts
    49

    Unhappy 2 cable and more pic

    Let me tell u more of my problem.
    Just think 10 or more pic and a master pic to check others.
    The slaves will do their jobs but when the master asks it will answer the master.
    For exemple lets give names to the slaves as S1,S2...S10 and the master will be MAS
    the MAS is asking to the S2
    MAS=S2 re u there?
    S2 = yes i am here and online
    MAS=what is the count?
    S2= 100
    MAS=ok i got the count clear the count.
    S2=count cleared!!!!
    then.....
    MAS=S4
    MAS=S5....
    NOW THE REAL QUESTION
    is it possible to do all of these in 2 wire lines?
    Asking is not a shame but not learning is a SHAME!!!

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    answer yes...

    here is something to start...
    http://www.picbasic.co.uk/forum/showthread.php?t=1192
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    May 2005
    Posts
    49


    Did you find this post helpful? Yes | No

    Question Not the same :(

    I think u understand me wrong i am trying to explain like the picture...
    for exemple slave1 =S1
    S1 will read the main line and will wait call for S1
    all the pics must connect to the main line.
    Attached Images Attached Images  
    Last edited by SuB-ZeRo; - 26th May 2005 at 23:53.
    Asking is not a shame but not learning is a SHAME!!!

  4. #4
    Join Date
    Dec 2003
    Location
    Storrs, Ct.
    Posts
    91


    Did you find this post helpful? Yes | No

    Default Can option

    Have you considered CAN controllers? I just aquired some samples from Microchip to do that same thing. No progress yet however.

  5. #5
    Join Date
    May 2005
    Posts
    49


    Did you find this post helpful? Yes | No

    Angry I don't know but i will find...

    Yes that's right.I am trying to do that.It's not impossible imposible things re that we can't do.And i will find a solition if i find i will share.
    Asking is not a shame but not learning is a SHAME!!!

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    you don't need to get some CAN stuff for that. TWO WIRES only

    One scheme... there's a thousands other way but.. I2C could be interesting also

    1 Busy line
    1 TX/RX line


    Master enable the busy line
    all slave listen the Master for a x timeout delay
    Master message done, Master disable busy line and wait reply of a Slave
    Slave enable busy line and talk to Master


    That imply to switch I/Os to input and output but this work...

    OR if you want to do everything more easy.... another scheme


    1. TX (From master TX to all slave RX)
    1. RX (From all slave TX to Master RX with diode mixer and pull down/pull up resistor depending of your serial mode (inverted or true driven))
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts