Connect with us

About PIC18F4550 programming

Discussion in 'Microcontrollers, Programming and IoT' started by shindehari, Oct 28, 2018.

  1. shindehari

    shindehari

    11
    1
    May 19, 2014
    Hi,

    I have designed a PCB to program pic18f4550 controller IC. I am using pickit3 to program the pic18f chip. I can't able to programm the pic18f chip and I am getting the error that " 0x0 target device ID does not match expected device ID 0x1200".

    If I replace pic18f4550 chip with pic16f877(same pin configuration as pic18f4550). chip then my pickit3 is connecting with it without any error.

    Please let me know any there anything needs to be done to programm pic18f4550.
     
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    8,687
    1,691
    Nov 17, 2011
    Looks like you haven't set up the correct PIC as target in the MPLAB IDE.
     
  3. shindehari

    shindehari

    11
    1
    May 19, 2014
    I have set PIC18F4550 in the mplab ipe window.
     
  4. BobK

    BobK

    7,380
    1,559
    Jan 5, 2010
    Things to look for.

    1. Have you powered all of the Vdd and Vcc pins and have decoupling capacitors (100nF) on each pait?

    2. Have you pulled PGM low? This can be a problem if it is floating.

    3. Is anything, other than the PICkit connected to the MCLR pin?

    4. Have you tried a second chip (maybe it is damaged?)

    Bob
     
  5. shindehari

    shindehari

    11
    1
    May 19, 2014
    I have checked below points.

    1. I have Powered pin no 32 and 11 with 5 volt, both the pins has decoupling capacitor of 100nf.

    2. I have pulled PGM low but no sucess

    3. MCLR is pulled to VCC using 10k and connected to GND through 100nf capacitor.

    4. I have tried two chips but no sucess. ( I have ordered new chips from trusted source).
     
  6. BobK

    BobK

    7,380
    1,559
    Jan 5, 2010
    Try getting rid of the capacitor on MCLR. I have never used one myself.

    The datasheet says you need a 220nF cap on the Vusb pin. You might try that.

    Bob
     
  7. shindehari

    shindehari

    11
    1
    May 19, 2014
    Hi Bob,

    As per your suggestion I removed 100nf capacitor from MCLR pin and added 220nf capacitor to Vusb pin. Now I can detect my controller and also able to program it. Thanks for the support
     
  8. BobK

    BobK

    7,380
    1,559
    Jan 5, 2010
    Glad to be of help.

    Bob
     
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.