• AVR Freaks

Hot!Need to load the program without removing the IC from the circuit board

Page: 12 > Showing page 1 of 2
Author
john_ive
Super Member
  • Total Posts : 193
  • Reward points : 0
  • Joined: 2017/05/22 22:22:08
  • Location: 0
  • Status: offline
2018/02/07 04:31:34 (permalink)
0

Need to load the program without removing the IC from the circuit board

Hello friends,
Please refer the image.
I tried to connect the PICKIT2 to load the program into controller without removing IC from the main board.
By this circuit when I tired to connect the PICKIT 2,it showing VDD target mismatching.
 
I powered the main board at the time of loading the program.But it not working.
I need to load the program into IC without removing the IC from the main board.
How to solve this issue..?  

Attached Image(s)

#1

22 Replies Related Threads

    qɥb
    Monolothic Member
    • Total Posts : 3332
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2018/02/07 04:44:17 (permalink)
    +2 (2)
    john_ive
    By this circuit when I tired to connect the PICKIT 2,it showing VDD target mismatching.

    Please do not re-word the error message.
    What EXACTLY did it say?
     
    Add a 10k resistor from pin 36 (RB3/PGM) to ground.
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #2
    concertinaman
    Bug Sorter
    • Total Posts : 249
    • Reward points : 0
    • Joined: 2007/06/14 05:56:58
    • Location: UK
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2018/02/07 04:52:56 (permalink)
    +2 (2)
    That 100n on the reset line is a killer for programming.
    Take the 10k/100n junction to the reset line via another 10k resistor.
    #3
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2018/02/09 03:59:02 (permalink)
    0
    concertinaman
    That 100n on the reset line is a killer for programming.
    Take the 10k/100n junction to the reset line via another 10k resistor.


    Are you advising to remove the capacitor from MCLR..?
    #4
    qɥb
    Monolothic Member
    • Total Posts : 3332
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2018/02/09 04:01:09 (permalink)
    +1 (1)
    You could, but he is actually advising inserting a resistor in series between the capacitor and the PIC's MCLR pin.
    The programmer would still connect directly to the pin.
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #5
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/15 02:44:41 (permalink)
    0
    After loading the program into PIC controller,we used to removing connector wire between the PICKIT2 and PIC controller.
    If the connector wire connected after loading the program means,the controller not functions normally..
     
    Is their any way to operate the controller without removing the connector wire between the PICKIT2 and PIC.
    #6
    pcbbc
    Super Member
    • Total Posts : 1013
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: online
    Re: Need to load the program without removing the IC from the circuit board 2019/02/15 03:23:11 (permalink)
    +2 (2)
    john_ivethe controller not functions normally.
    My car does not work either.  What do you think might be wrong?


    #7
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/15 05:02:36 (permalink)
    -1 (1)
    pcbbc
    john_ivethe controller not functions normally.
    My car does not work either.  What do you think might be wrong?




    We can try the possibilities.
    Have to learn and try apart from limits
    #8
    Mysil
    Super Member
    • Total Posts : 3324
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/15 05:43:35 (permalink)
    0
    Hi,
    MPLAB X have settings for PICkit 2 in Project properties, that include Voltage to use, and whether PICkit 2 shall power the board.
    If the board hawe it's own power, make sure to select power from PICkit Off.
    Vdd power shall still be connected.
     
    Note:  PICkit 2 use USB power voltage as ADC reference,
    and also have a calibration setting stored.
    If USB voltage is weak, or calibration is wrong, then PICkit 2 may complain that Board voltage is out of range. 
     
    Adjust Voltage setting in MPLAB X,  Use a better USB cable, or a powered Hub,
    Or recalibrate PICkit 2 according to actual USB voltage,
    this may require PICkit 2 v2 Programming Application software .
     
        Mysil
    #9
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/22 05:28:41 (permalink)
    0
    Does old reset circuit(Refer reset_old image) will affect the operation of the PIC controller..?
    Is new reset(Refer new_reser image) is correct..?
    Some times PICKIT 2 not detecting the CONTROLLER.
    It showing "unsupport part in device place"
    post edited by john_ive - 2019/02/22 05:38:13

    Attached Image(s)

    #10
    pcbbc
    Super Member
    • Total Posts : 1013
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: online
    Re: Need to load the program without removing the IC from the circuit board 2019/02/22 06:05:16 (permalink)
    0
    Which part.  It depends if MCLR has an internal pullup or not.  Most will have.
     
    #11
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/22 06:40:34 (permalink)
    0
    pcbbc
    Which part.  It depends if MCLR has an internal pullup or not.  Most will have.
     




    How to find the controller having internal pullup or not..?
    In datasheet of PIC16F877A shows Master Reset or Programming voltage(Output).
     
    Mostly I will use PIC16F877A and PIC18F4520 controllers.
    #12
    pcbbc
    Super Member
    • Total Posts : 1013
    • Reward points : 0
    • Joined: 2014/03/27 07:04:41
    • Location: 0
    • Status: online
    Re: Need to load the program without removing the IC from the circuit board 2019/02/22 07:00:40 (permalink)
    +1 (1)
    How to find the controller having internal pullup or not..?
    Study the datasheet?
    I could not see any mention of PIC16F877A having a pullup, so would assume NOT.  But do not work on other peoples assumptions, you could always test it...
     
    Example of a PIC with MCLR pullup - PIC16(L)F1946/47:
    3:Weak pull-up always enabled when MCLR is enabled, otherwise the pull-up is under user control.

     
    Mostly I will use PIC16F877A and PIC18F4520 controllers.
    We can't be expect to know or remember this.  Post your current device with EVERY post.  It is part of the most basic information that will be required to answer just about any question.
    #13
    PStechPaul
    Super Member
    • Total Posts : 2266
    • Reward points : 0
    • Joined: 2006/06/27 16:11:32
    • Location: Cockeysville, MD, USA
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/22 17:05:15 (permalink)
    +1 (1)
    Neither circuit is correct. A 10k resistor from MCLR to Vdd will provide the required pull-up and will usually not adversely affect programming. A small capacitor, 10 nF or so, to Vss, will provide noise filtering.
     
    This circuit will supply a pull-up bias to MCLR, but the diode will not reliably assert the logic low signal for reset.

    This circuit is better, but the 100 nF capacitor may interfere with the ICSP signal.


     
    #14
    NorthGuy
    Super Member
    • Total Posts : 5441
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/22 18:10:05 (permalink)
    0
    john_ive
    Mostly I will use PIC16F877A and PIC18F4520 controllers.



    The ICSP connection is the same for both. It's been already described in words, but a picture is worth thousand words:
     
    https://www.northernsoftware.com/dev/pic16f/pic16f877a.htm
    https://www.northernsoftware.com/dev/pic18f/pic18f4520.htm
     
     
    #15
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/22 23:55:56 (permalink)
    0
    PStechPaul
    Neither circuit is correct. A 10k resistor from MCLR to Vdd will provide the required pull-up and will usually not adversely affect programming. A small capacitor, 10 nF or so, to Vss, will provide noise filtering.
     
    This circuit will supply a pull-up bias to MCLR, but the diode will not reliably assert the logic low signal for reset.

     


    Instead of diode shall we use 470R resistor..
    In PICKIT 2 datasheet they given either schottky diode or resistor is recommended..
    #16
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/23 01:55:07 (permalink)
    0
    john_ive
    Instead of diode shall we use 470R resistor..
    In PICKIT 2 datasheet they given either schottky diode or resistor is recommended..

    That was some terrible advice in an old datasheet.
    Never fit a diode like that.

    Nearly there...
    #17
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/23 06:21:10 (permalink)
    0
    Is this circuit is correct...
    Shall I replace the pin which connect the +5VDC pin..?
    While loading the program into the controller I will use ON BOARD power supply.
     
    Shall we 10K or have to change the value also..?
     
    Is this is circuit is correct..?

    Attached Image(s)

    #18
    NorthGuy
    Super Member
    • Total Posts : 5441
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/23 08:46:36 (permalink)
    0
    john_ive
    Is this is circuit is correct..?



    Nope. You also need a resistor. I recommend 4.7K for your PICs.
    #19
    john_ive
    Super Member
    • Total Posts : 193
    • Reward points : 0
    • Joined: 2017/05/22 22:22:08
    • Location: 0
    • Status: offline
    Re: Need to load the program without removing the IC from the circuit board 2019/02/24 02:56:13 (permalink)
    0
    NorthGuy
    john_ive
    Is this is circuit is correct..?



    Nope. You also need a resistor. I recommend 4.7K for your PICs.


    Between tapping from 10K resistor and capacitor and to PIC's reset pin..?
    Is resistor is 470R or 4.7K..?
    Pic datasheet recommended 470R resistor...
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5