program crashes: is it my code or the chip?


Closed Thread
Results 1 to 16 of 16

Hybrid View

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


    Did you find this post helpful? Yes | No

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

    Hi,
    > Any ideas as to why this happens?

    No, not really I'm afraid and I'm not in a position where I can wire it up and test here....
    Since both mine and Alains code experience the same issue it feels like a hardware problem or a configuration problem but as far as I can see you've got CMCON, ANSEL and MCLR covered so I don't know.

    Or it might be something completely obvious - which we're all missing at the moment.

    Couple of, perhaps completely unrelated, questions:
    * Does it do the same thing for both "sides" or only one? (If only one, which?)
    * Do you program the chip in circuit and is the device programmer still connected to the target when this happens?
    * Can you post a schematic of how you have it wired?

    /Henrik.

  2. #2


    Did you find this post helpful? Yes | No

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

    No. It does not do the same thing for both sides. The GPIO0,1,2 side lights up, but does not toggle when PB1 goes low. The GP3,4,5 side does not light up at all and does not do anything when PB2 goes low. I have a momentary switch connected to ground. I have a 10k resistor to VDD(+5v). Those two components connect to GPIO2 or 3 via a 220ohm resistor. If I pull the 10k resistor that is part of PB1 and then put it back in, the circuit suddenly starts working. This has to be done every time power is turned off.

    The device programmer is separate. I program the chip in a pin wiggler, take it out, and then put it in the circuit.

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