unexpectedly reset


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    41

    Default unexpectedly reset

    For my project I'm using a 18F4525 (48k.) With PBP3. I will use only 31k but the micro resets itself after a few minutes of operation. Pin 1 is permanently connected to the positive. WDT disabled. In the program I use a lot of GOTO and GOSUB. Could this be the cause? thanks

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


    Did you find this post helpful? Yes | No

    Default Re: unexpectedly reset

    You can poll the RCON register and see if it gives you a hint of what caused the reset. The most likely cause however is that you end up at a RETURN without a prior GOSUB.

    /Henrik.

  3. #3
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: unexpectedly reset

    Henrik thanks for your help. I discovered that I had started many GOSUB inside of GOTO and never found its RETURN. The stack had too many "orphaned" address "and then the micro doing strange things, and often went in reset.

Similar Threads

  1. Reset at midnight
    By malc-c in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th July 2010, 16:27
  2. Power up reset
    By ShawnB in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 25th November 2009, 19:52
  3. unexpected reset 2
    By netstranger.nz in forum General
    Replies: 0
    Last Post: - 13th October 2009, 07:36
  4. 18f242 reset
    By Armadus in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th August 2007, 02:32
  5. Mysterious Reset
    By JoelMurphy in forum General
    Replies: 24
    Last Post: - 24th February 2007, 23:37

Members who have read this thread : 1

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