SEROUT loop with pause


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: SEROUT loop with pause

    Ok thanks. Yeah, I can't remember but it may have been a VB.net program that I needed to slow down the loop to keep it from hogging the cpu. I have the python script reading the PIC, so I may take out the pause I have there also and see. The python serial input command I think just sits there and waits anyway for valid data.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: SEROUT loop with pause

    On multi core / multi threaded CPU and programs commands like "PAUSE" and "SLEEP" etc usually releases "control" of the CPU so that that other process/threads can gain access to it for the durations of the "sleep".

    With PBP that's simply not the case, PAUSE (just like almost all PBP commands) are blocking. In your case, the purpose of the PAUSE would be to "pace" the output, there's no other benefit or "good practice".

Similar Threads

  1. Replies: 6
    Last Post: - 28th October 2014, 06:08
  2. Do I need a pause?
    By tazntex in forum Serial
    Replies: 21
    Last Post: - 29th August 2008, 04:32
  3. Pause
    By blue in forum General
    Replies: 7
    Last Post: - 29th December 2005, 14:24
  4. pause 0.5
    By detail in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th June 2005, 11:32
  5. pause loop lockup with mplab sim
    By power67 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th February 2005, 13:10

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