Multiple SERIN's


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    crocodilebobbie's Avatar
    crocodilebobbie Guest


    Did you find this post helpful? Yes | No

    Default

    Hi:

    I found this same problem when the serin command does not get
    what it is looking for. If the strings do not get to the SERIN in the right
    format, then the serin just hangs up the PIC. The PIC is waiting for the
    correct number format.

    for example.

    SERIN PortC.0, t300, [170,170,TempIn]

    if the numbers 170 are not transmitted, or arrive correctly, the PIC hangs
    waiting for the correct "strings"

    bobbie

  2. #2
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Why don't you connect all the Serial pins up to the same pin?

    Use Serin with the "Flag" or "Qualifier" to acknowledge good data.

    You can have bi-directional via one pin...a slave and/or master.

    When you use Serin on 3 different pins...You can still use the Qualifier, but I would use a very short "timeout". And either way, there is no guarantee you will lose a packet or two sometime or another. You may have to keep sending until you receive your data from the chip, them send a "receive" bit.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. Multiple PICS from Same Crystal?
    By WOZZY-2010 in forum General
    Replies: 2
    Last Post: - 6th February 2010, 15:18
  2. Multiple RETURNS within a single subroutine
    By BrianT in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st June 2009, 16:43
  3. Problems controlling multiple pics
    By gandora in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 29th May 2007, 08:59
  4. Multiple PIC programming
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th May 2007, 23:47
  5. Using Multiple EEPROMs
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th March 2005, 07:37

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