How to make your own PIC network


Results 1 to 20 of 20

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    If you remove the dipswitch stuff and you're using a WORD sized variable instead, it "should" work... so a max of 65536 Slaves wich is not so bad.

    In this case you'll have to send this variable in two bytes

    MASTER:
    ----------
    SlaveSelect var word

    serout serialoutput, t2400, ["SLAVE",SlaveSelect.lowbyte,SlaveSelect.highbyte,D ATATOSEND]

    SLAVES:
    ----------
    SlaveSelect var WORD

    serin2 serialinput,t2400,[WAIT ("SLAVE",slaveselect.lowbyte,slaveselect.highbyte) ,datatodisplay]



    --------------
    Should work

    BtW Everything is in the header... IMO there's no limit...
    Last edited by mister_e; - 5th February 2005 at 02:52.
    Steve

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

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  3. PIC network over AC 220V
    By boban in forum Schematics
    Replies: 9
    Last Post: - 6th June 2007, 10:31
  4. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 20:42
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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