• AVR Freaks

Hot!Programming with ICD-4 with Universal Programming Module 2

Author
john0bravo
Junior Member
  • Total Posts : 97
  • Reward points : 0
  • Joined: 2017/05/30 00:40:01
  • Location: 0
  • Status: offline
2019/10/08 07:17:03 (permalink)
0

Programming with ICD-4 with Universal Programming Module 2

Hi, 
 
I am struggling with basic problem of downloading a test program on PIC16F88 using Universal Programming Module 2 (AC162049-2). The Universal Programming Module 2 is connected to ICD-4. 
 
I have performed "self test" in MPLAB X IDE which was OK with just USB cable. How about the power connection to ICD-4 ? Do I need to connect power adapter to ICD-4 for downloading the program in target board ? 
 
I am wondering that the Zero Insertion Force (ZIF) socket on Universal Programming Module 2 support up to 40 pin DIP devices. How to mount 18 pin device (PIC16F88) on Zero Insertion Force (ZIF) socket ? Is that OK to have pin no 1 on the PIC to be at pin no 1 of Zero Insertion Force (ZIF) socket ? In this case only pin 1 to 9 of PIC will be connected to pin 1 to 9 of the Zero Insertion Force (ZIF) socket and others 32 to 40. Is this right mounting ? 
 
I have mounted PIC16F88 in that manner and have connected USB cable to Universal Programming Module 2 but not able to program the PIC in MPLAB X IPE v5.25, see attachment. Do I also need to connect power to the adapter card ? 
 
post edited by john0bravo - 2019/10/08 07:22:33

Attached Image(s)

#1

13 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 17934
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/08 07:48:45 (permalink)
    0
    Did you configure IPE to power the Target? What voltage did you set it to?
    #2
    john0bravo
    Junior Member
    • Total Posts : 97
    • Reward points : 0
    • Joined: 2017/05/30 00:40:01
    • Location: 0
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/08 07:56:17 (permalink)
    0
    No I have not configured power setting for adapter board in IPE. 
     
    I am not sure if it is OK for Universal Programming Module 2 to power up from ICD. 
     
    Here is the datasheet. 
     
    http://www.farnell.com/datasheets/1670419.pdf?_ga=2.47158819.587494966.1570543372-365876765.1568806190
     
     
     
     
    #3
    NKurzman
    A Guy on the Net
    • Total Posts : 17934
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/08 08:01:01 (permalink)
    0
    either you Power the PIC from the ICD, or an external supply.  The Chip needs power
     
    Page 2
    4. Power Supply: Power is supplied to the UPM 2 by either the development tool in use, or the on-board adjustable VDD regulator, but not both. The selection is made by setting Jumper J7 to select either ICSP™ VDD (supplied by debugger) or Board VDD (supplied by on-board regulator).
    #4
    Jerry Messina
    Super Member
    • Total Posts : 442
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/08 08:32:40 (permalink)
    0
    Do I need to connect power adapter to ICD-4 for downloading the program in target board ?

    Yes.
     
    The ICD4 requires using an external power supply... it can't power the target on its own.
     
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 17934
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/08 11:57:57 (permalink)
    0
    Jerry Messina
     The ICD4 requires using an external power supply... it can't power the target on its own.
     

    The ICD4 can Power a target on it's Own.
     
    #6
    Jerry Messina
    Super Member
    • Total Posts : 442
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/08 13:07:15 (permalink)
    0
    From the ICD4 users manual:
    2.3.3.2 EXTERNALLY POWERED THROUGH DEBUGGER
    An alternative method of powering the target device is an external power supply
    connected directly to the MPLAB ICD 4. Be aware that you must also select power from
    the MPLAB ICD 4 debugger via MPLAB X IDE.

     
    Has this changed? It's one reason I put the ICD4 back in its box the day I got it.
     
    #7
    NKurzman
    A Guy on the Net
    • Total Posts : 17934
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/08 13:53:31 (permalink)
    0
    I never tried it.
    I assumed it was the same as the ICD-3 limit current stand alone, and full with the external supply.
    Maybe I will try it later.
    #8
    john0bravo
    Junior Member
    • Total Posts : 97
    • Reward points : 0
    • Joined: 2017/05/30 00:40:01
    • Location: 0
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/09 02:43:24 (permalink)
    0
    Powering UPM 2 from ICD does not work. I have jumper J7 at ICSP VDD position on UPM 2.
     
    I have the following connections through jumper wires.
     
    J2: PGC to PIC: Pin12 (PGC)
    J2: PGD to PIC: Pin13 (PGD)
    J2: VDD to PIC: Pin14 (VDD)
    J2: VPP to PIC: Pin4 (VPP)
    J2: GND to PIC: Pin5 (VSS)
     
    I also have chosen in MPLAB X IDE in ICD power setting to power circuit board from ICD but still not able to program the PIC. There is no voltage at the Core VDD test point. 
    post edited by john0bravo - 2019/10/09 07:23:09

    Attached Image(s)

    #9
    john0bravo
    Junior Member
    • Total Posts : 97
    • Reward points : 0
    • Joined: 2017/05/30 00:40:01
    • Location: 0
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/09 07:54:18 (permalink)
    0
    Hi, 
     
    I also have tried by connected 9 V external power to UPM 2 and select the jumper 7 at Board VDD. With voltage regulator I have adjusted the VDD to 3.3 V. 
     
    In the power setting of ICD I have selected 3.3 V external power which give the error message. Setting 9 V in ICD power setting is not allowed.  
    post edited by john0bravo - 2019/10/09 07:55:34

    Attached Image(s)

    #10
    mpgmike
    Super Member
    • Total Posts : 324
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/09 08:13:35 (permalink)
    0
    The ICD4 requires the external 9 volt power supply even if you just want to program a PIC (without the board being powered).  I have one and tried it.  There is absolutely no power supplied by the ICD4 (even low mA) without that walwart.

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #11
    john0bravo
    Junior Member
    • Total Posts : 97
    • Reward points : 0
    • Joined: 2017/05/30 00:40:01
    • Location: 0
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/11 00:05:22 (permalink)
    0
    Yes ICD requires external 9 V power supply to power up the application board or universal programming module. At which position I should have Core VDD voltage regulator on UPM 2 ? Which voltage value I need to write in ICD power setting in MPLAB software ? 
    #12
    Jerry Messina
    Super Member
    • Total Posts : 442
    • Reward points : 0
    • Joined: 2003/11/07 12:35:12
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/11 03:42:13 (permalink)
    +1 (1)
    There is no voltage at the Core VDD test point.
    At which position I should have Core VDD voltage regulator on UPM 2 ?

    There would only be a voltage out of the Core VDD regulator if you're powering the UPM2 via its J5 power connector, and not powered via ICSP. The Core VDD regulator isn't required for the 16F88.
     
    If you're powering the ICD4 then be sure to set J7 to 'ICSP power' and  tell IPE to power the target if that's how you now want it.
     
    I'd suggest you pick one method and stick with it. You keep changing the setup.
     
    #13
    john0bravo
    Junior Member
    • Total Posts : 97
    • Reward points : 0
    • Joined: 2017/05/30 00:40:01
    • Location: 0
    • Status: offline
    Re: Programming with ICD-4 with Universal Programming Module 2 2019/10/14 03:30:08 (permalink)
    0
    Yes now I am able to program the PIC with the following connections between PIC16F88 and Microchip Universal Programming Module (UPM) 2.
     
    J2: PGC to PIC: Pin12 (PGC)
    J2: PGD to PIC: Pin13 (PGD)
    J2: VDD to PIC: Pin14 (VDD)
    J2: VPP to PIC: Pin4 (VPP)
    J2: GND to PIC: Pin5 (VSS)
     
    I first perform the self test in MPLAB with USB cable to ICD-4 with the test module provided with the ICD-4. Latter I power up the ICD-4 with external 9 V and set the power setting that ICD-4 provide the power to circuit board.
     
    post edited by john0bravo - 2019/10/14 03:31:18
    #14
    Jump to:
    © 2019 APG vNext Commercial Version 4.5