program crashes: is it my code or the chip?


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: program crashes: is it my code or the chip?

    your answer is here ...
    Code:
     _WDT_OFF
    did you notice the configs Henrik and I have used ???
    one more Holy manual chapter to learn ...

    never been a hardware/software problem ...

    looks you've been using "C" programming before, and Basic shows "little" differences in program flows.

    looks you've forgotten some "CLRWD" commands ... as you decided to place them by yourself ...

    so the final answer is ...

    It's your code !!!
    Alain

    PS: BTW ... your "Programming style " looks very close to MikroC ( Mikroelektronica ) C examples ...
    Last edited by Acetronics2; - 27th March 2014 at 07:16.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: program crashes: is it my code or the chip?

    My background is actually in VisualBASIC, but that was a long time ago. I tried MikroBasic but I prefer PBP3. The hardest part for me is learning the configuration and registers. I am slowly learning to make sense of all the datasheets though. Not very well, but getting better. I had been using BASIC Stamp. That was very easy. It takes care of all the configs and registers for you. But it is not very good for developing cost effective products.

    I had the WDT off because that was the config from the example program found here: http://melabs.com/samples/LABX4-12F675/BUTX4.htm I'm still not really sure what a watch dog timer does.

Similar Threads

  1. PICKit2 just crashes
    By johnbond in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th June 2011, 07:40
  2. Replies: 1
    Last Post: - 22nd May 2011, 19:37
  3. 16f690 crashes
    By Lincoln S. in forum Serial
    Replies: 8
    Last Post: - 26th November 2008, 08:32
  4. Program Code and Program Memory
    By DenFrod in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th February 2007, 14:51
  5. problems reading code from chip
    By leland in forum General
    Replies: 4
    Last Post: - 17th October 2004, 10:42

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