Why would this simple code hang after 10 cycles:


Results 1 to 10 of 10

Threaded View

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


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Why would this simple code hang after 10 cycles:

    When execution RETURNs from Recording subroutine it will fall into the Recording subroutine by itself which then ends with a RETURN - not good.

    Move your Goto Mainloop to after the two IF statements.

    EDIT: But I now see you're already got that answered in the other thread...
    Last edited by HenrikOlsson; - 25th March 2023 at 07:41.

Similar Threads

  1. 18LF4680 HSERIN and SEROUT hang my PIC!
    By temp19 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th May 2011, 02:02
  2. what's wrong 16F877A simple code?
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th October 2009, 01:11
  3. Replies: 1
    Last Post: - 15th December 2008, 05:34
  4. Variant of Serin2/Timeout Hang Problem
    By Jimbo in forum Serial
    Replies: 3
    Last Post: - 2nd October 2007, 19:33
  5. hopefully simple code
    By hoyles in forum General
    Replies: 3
    Last Post: - 8th September 2005, 23:24

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