1
\$\begingroup\$

I am a software engineer messing with some electronics I can't figure out why I can't program with my PicKit 3. I need some help understanding why I can't program my microcontroller.

I am able to power and read my eval board (PIC18F45K20 demo board) that came with the PicKit but I cannot get it to work with my circuit. I breadboarded a minimum circuit with my PIC16F18855

PIC16F18855 Datasheet

I've connected the circuit as in the datasheet, with VSS connected to ground. I have no resistors because I have nothing else connected to the circuit. VDD is 5V, 10A from the wall.

When I try to connect the PicKit, MPLab returns: 'Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.'

When I disconnect the external power and try to run it from the Pic I get "PICkit 3 is trying to supply 5.000000 volts from the USB port, but the target VDD is measured to be 4.500000 volts. This could be due to the USB port power capabilities or the target circuitry affecting the measured VDD."

I get this on both my Mac and my windows PC. If I change the target voltage to 4.5V it will just report a lower voltage when it measures it.

I've seen some things suggesting a pull up 10k resistor is needed or some additional capacitance but I believe this is for older PIC's and I don't understand the reasoning behind it. The data sheet for the demo board for example shows 2 capacitors connected to VDD Demo board schematic

Currently I'm assuming the capacitors might be important to help stabalise the voltage but then I would guess that the voltage measured by MPLab would always change but its consistent.

\$\endgroup\$
1
  • \$\begingroup\$ You need a pull up resistor on MCLR otherwise your device is alltimes in reset. Maybe that is not your problem with the PICKit but you need it. \$\endgroup\$
    – Mike
    Commented Sep 3, 2021 at 8:54

1 Answer 1

2
\$\begingroup\$
  1. If you are using a laptop to program the MCU, try programming the MCU while laptop is connected to the Power outlet. This may solve the low voltage error you get .

  2. Connect VPP to VDD using a 10k resistor.

Try programming other PIC MCU devices, in order to make it sure the programmer is not damaged.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.