Serial comm between two PICs


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333

    Default Re: Serial comm between two PICs

    Having read the manual the serin statement has this format.

    SERIN Pin,Mode,{Timeout,Label,}{[Qual...],}{Item...}

    As you can see square brackets are around the Qualifier.

    The statement in your code

    SERIN PORTB.1,T2400,[BR]

    Is therefore waiting for BR as a qualifier?

  2. #2
    Join Date
    Oct 2013
    Posts
    9

    Default Re: Serial comm between two PICs

    Quote Originally Posted by EarlyBird2 View Post

    SERIN Pin,Mode,{Timeout,Label,}{[Qual...],}{Item...}
    The statement in your code
    SERIN PORTB.1,T2400,[BR]
    Is therefore waiting for BR as a qualifier?
    I had never use SERIN or SEROUT or DEBUG or DEBUGIN instruction so I can't shurely tell you what' right. I need to send decimal value of GREJAC from PIC1 to BR on PIC2.Then a decimal value of BR I will compare in SELECT CASE rutine which I didn't wrote.

  3. #3
    Join Date
    Dec 2010
    Posts
    409

    Default Re: Serial comm between two PICs

    SERIN PORTB.1,T2400,[BR] should be SERIN PORTB.1, T2400, BR

  4. #4
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333

    Default Re: Serial comm between two PICs

    Are you certain Charlie? I was not sure simply because all the way through this thread everyone has used the [BR] version of the serin instruction. Just goes to show that even experts can make mistakes

  5. #5
    Join Date
    Dec 2010
    Posts
    409

    Default Re: Serial comm between two PICs

    According to my manual, yes. (0609)
    I have not tried it. I like SEROUT for transmitting, but generally find using the hardware receiver (HSERIN) easier to get going.

Similar Threads

  1. Pic to pic interrupt ans serial comm
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th May 2008, 22:43
  2. Multiple Pics to One serial port
    By Rleonard in forum Serial
    Replies: 1
    Last Post: - 18th January 2007, 18:30
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. 16F877, DS18S20 and Serial Comm Problem
    By YellowTang in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2004, 10:36
  5. serial comm from Pic to STAMP
    By d1camero in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th April 2004, 23:58

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