Having Serin Serout problems


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    12

    Default Re: Having Serin Serout problems

    I'm trying to make it idiot proof(trying to prevent 10k phone calls because people are to lazy to read instruction sheet) and I only want to sell one sku if at all possible. and I could make another data line. But I would like only three wires between modules vcc, ground, and data.

    a and x are initialized to 0 two lines above don't know why I didn't include that. And you are correct on the if statement.

    The way that it works:

    All processors Idle till they receive a 0 on ign. Once the first processor in line goes to zero. It goes to serin. if serin times out. This processor is then assumed to be the master. module is incremented by one to send ID to next processor. It then sends a ground signal out of "out" to advanced the next processor into serin. The master then serouts 5 times (even though I want it to be one). Then goes to a pulse counting state on "out". The second processor receives its module number from serin. stores to eeprom then, increments "module" sends a ground pulse to next processor to get it ready for serin in. After that each slave after that does the same. after it sends serout to next processor. It sends a ground pulse back to previous processor to count. Then it listens on "out" for ground pulse and everytime it gets a ground pulse it just sends the pulse out of "ign" back to the master which then counts how many slaves have been generated. Everything in program works flawlessly except for the serin and serout. as for some reason serin times out and then a slave thinks it is the master also. Just need to know why this is. It is either setup timing, noise (doubt it) or possibly when in serin state it looses its pull up resistor state on B.0 (which is enabled)

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default Re: Having Serin Serout problems

    Quote Originally Posted by Elusiveinc View Post
    ... I would like only three wires between modules vcc, ground, and data.
    ...
    You might have a point with the internal pull-up resistor being disrupted with the pin being used as input and output. Try an external on each B0, see how that goes.

    Robert
    Last edited by Demon; - 5th April 2013 at 22:00. Reason: Correction to my reply, only 3 wires are indeed required

Similar Threads

  1. Using SEROUT and SERIN
    By acinorth in forum Test Area
    Replies: 1
    Last Post: - 20th July 2011, 12:33
  2. Serin Serout Help
    By MangoKid in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 13th December 2010, 21:00
  3. SERIN and SEROUT
    By CumQuaT in forum mel PIC BASIC
    Replies: 10
    Last Post: - 3rd September 2009, 01:17
  4. serin and serout
    By yeelooi in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th December 2007, 09:35
  5. help with SERIN & SEROUT
    By navaismo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 17th September 2005, 02:49

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