Serout2, Serin2 and Flowpin


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699

    Default Serout2, Serin2 and Flowpin

    Hi,

    I'm sending and receiving data from a serial module using Serout2 and Serin2 at a 19200 baud rate without any problems. I have read these command sections in my PBP 2.60 manual several times. I just can't figure out what is the function of the Flowpin and how it works. The explanation given in the manual is just not helping me much. Can somebody enlight me here?

    Thank you,

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

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


    Did you find this post helpful? Yes | No

    Default Re: Serout2, Serin2 and Flowpin

    From reading the manual, using flowpin will permit transfer of data without overrunning receiver. I've never used it even at 115K at 48MHz (or was it 64MHz), didn't overrun receiver.

    This would be useful if your receiver could be "disturbed" by an interrupt handler or something like that.

    Robert

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: Serout2, Serin2 and Flowpin

    Quote Originally Posted by Demon View Post
    From reading the manual, using flowpin will permit transfer of data without overrunning receiver.
    Yes, that's the description of Flowpin in the manual. But, that doesn't really help much. No explanation as how it works or at least a useful example.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: Serout2, Serin2 and Flowpin

    Hi,
    Lets say you have two PIC that are supposed to talk to each other over a serial line, you use SEROUT2 on one and SERIN2 on the other. Both PICs however have other things to do as well so if the sender would just spit out data whenever it feels to there's a big chance the receiver isn't listening and the data would be lost. Using flow control is a way around that problem.

    The sender PIC will not send any data untill it sees its flowcontrol input going active and the receiver PIC won't set its flowcontrol output untill it's actually ready to receive.

    So, when the receiver is ready to accept data it sets its flowcontrol output and waits for the data, if the sender isn't ready no data will be sent and the recveiver will timeout and continue. If the sender is ready to send data it'll look at its flowcontrol input to see if the receiver is ready, if it is it will send the data. If the sender does NOT see the flowcontrol signal then IT will timeout and continue.

    /Henrik.

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: Serout2, Serin2 and Flowpin

    Thank you Henrik. That explains it all. It might come handy in the future.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Similar Threads

  1. Serout2 using flowpin
    By l_gaminde in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th February 2013, 17:26
  2. Serin2/ Serout2
    By Armadus in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th June 2008, 00:02
  3. Help SERIN2/SEROUT2
    By mike20200 in forum mel PIC BASIC
    Replies: 3
    Last Post: - 5th September 2007, 06:19
  4. Serin2 and serout2
    By abood in forum Forum Requests
    Replies: 1
    Last Post: - 15th August 2005, 13:20
  5. Serin2 and serout2
    By abood in forum Serial
    Replies: 0
    Last Post: - 12th August 2005, 09:59

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