12F509 / 609 ICSP problems


Closed Thread
Results 1 to 10 of 10
  1. #1

    Question 12F509 / 609 ICSP problems

    Hello All,

    I looked through the archive and did not find a working solution to my problem. I am using a USB MELABS in-circuit programmer which works on just about everything I have used, except the 12F series. I am about to set a new punt record with my programmer! gggrrrr

    I tested two setups....

    1). external power 5vdc on the chip and isolated MCLR pullup....which works fantastically well for the 16F series. This method did not work for the 12F

    2). I used a voltage regulator on the VPP line to power the MCU, a recommendation from an archive post. That VPP needs to come up before power up or vise versa. This did not work either.


    The error is the same regardless of the method. It initiates erase upon programming, then programs and when it verifies it sees a memory content error 000 or something to that effect.

    No, I don't have an adapter to program the IC outside of the circuit, that was the whole reason I chose ICSP.

    HELP!!!!!

    Nick

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Stupid question.....
    Are you sure the correct pins are being used? The 12s are different from the 16s.
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Does MCLR need to be pulled up even when programming? IE, do I need to use a diode with a 10K pull up to isolate 5vdc? I have been trying to program without pulling up the MCLR pin. Oh man...I think that may be it, the MCU is in reset mode when it is finished programming....does that sound right?

    Nick

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    While programming MCLR does not need to be connected to anything but the programmer.

    Do you have MCLR configured as an input or reset?

    This may also help.
    http://www.melabs.com/support/icsp.htm
    Dave
    Always wear safety glasses while programming.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    yes as input.

  6. #6
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Macgman2000 View Post
    yes as input.
    And internal oscillator, I suspect.

    In which case, vpp-before-vdd is the only option that can resurrect the chip.

  7. #7


    Did you find this post helpful? Yes | No

    Wink

    OK I got it to work. Had to use pin#4 on the USB programmer header, not external power. It supplies switched vdd to the mcu. I assumed that it takes into account the unique programming cadence for the 12F. I assumed correct, thanks all!

    Nick

  8. #8
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Macgman2000 View Post
    No, I don't have an adapter to program the IC outside of the circuit, that was the whole reason I chose ICSP.
    What adapter(s) do you have? Are these SOIC? Narrow? Wide?These fit into DIP adapters for programming and can be used in breadboards for testing.

  9. #9


    Did you find this post helpful? Yes | No

    Red face

    No adapter needed. I am using it in circuit, except that I isolate power from the programming header pins on my target board. The programmer does not power the rest of the circuitry, only the chip. It works well, only if you use the pin#4 header on the USB programmer for switched Vdd. Any time I apply external power, it violates the cadence requirement called out in the data sheet. The order of logic levels on pins to put it in program mode is very finicky

    Nick

  10. #10
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    I understand that you are using ICSP but others might find the adapters useful.

Similar Threads

  1. 12F509 / 609 IR and speed control
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th October 2009, 01:51
  2. ICSP and 16F684
    By onaclov2000 in forum Schematics
    Replies: 4
    Last Post: - 5th March 2009, 17:31
  3. Soic Icsp
    By earltyso in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th September 2008, 19:51
  4. Replies: 1
    Last Post: - 10th December 2007, 23:57
  5. ICSP problems
    By Tomexx in forum Off Topic
    Replies: 0
    Last Post: - 8th January 2006, 23:38

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