SerIn Looping problem ???


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Thanx Melanie (ladies first) & Dave, i didn't know that the SerIn behaved like that with lack of data.

    Ok, i'll go fiddle my code to accomodate that, and see what happens ;-)

    Thanx again.

  2. #2
    Join Date
    Jul 2008
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Hi again,

    For a quick test, i tried :

    Code:
    SerIn pin1,T9600,[1000],SerialData
    but nothing happens. (assuming a 1000ms timeout).

    Am i meant to be adding other code to accomodate the elapsed timeout? or does the SerIn just "let go" after 1000mS, and return back to any previous gosubs/code etc?


    Once again, the PBP Manual is "light" with information in most of it's commands, i'd love to see an entire re-write someday.

    Is there an ADVANCED PBP link/pdf i should be looking at these days???

    Regards,
    Marty.

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Loop:
    SerIn pin1,T9600,500 Jumpout,SerialData 'get serial data from Pin1,
    'store it in variable "SerialData"
    Jumpout:

    SerOut pin2,T9600,[SerialData] 'send the variable to a terminal to
    'view the variable value on screen.

    GoTo Loop 'do it forever.
    The added code in red, wait for 500 ms the data, then jump to label JUMPOUT executing the serout command.

    Al.
    All progress began with an idea

  4. #4
    Join Date
    Jul 2008
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    Thanx AL, i discovered that just moments ago, and got it to work pretty much the same as you've indicated....

    Marty

Similar Threads

  1. Serin Problem with 12F629/PBP
    By Flyingms in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th March 2009, 14:59
  2. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 22:50
  3. Serin serout problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 336
    Last Post: - 6th February 2007, 04:25
  4. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  5. serout and serin problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th April 2006, 19:44

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