Troubleshooting PIC18F45J10 Wiring with PICKit2 Programmer

In summary, the PIC18F45J10 is not communicating with the PICKit 2 and it is likely that there is a short between the PIC and the circuit. The PICkit 2 is correctly plugged into the header, but there are no current limiting resistors in series with the LEDs. As a first step, it may be helpful to power the circuit from an external supply and see if the short is real.
  • #1
El Moriana
33
0
Hi,

I am attempting to wire a PIC18F45J10 to my PICKit 2 Programmer and I'm running into difficulties.

My PICKit2 is reporting a VPP and VDD Voltage level error. Troubleshooting it further tells me that I have a VDD short.

I have attached my wiring diagram along with the general wiring guideline that the datasheet provides. I cannot see anything wrong, but then again i am a newbie at this.

Any help would be greatly appreciated.
 

Attachments

  • Schematic of Dev Board Mk 1.jpg
    Schematic of Dev Board Mk 1.jpg
    30 KB · Views: 464
Physics news on Phys.org
  • #2
Not a PIC specialist, maybe someone else can add to this...
Anyway, a checklist of sorts:
Do you have the latest PICkit 2 version?
Is the PICkit 2 set up to provide power to your circuit?
Is your circuit exceeding the maximum current that the PICkit 2 can provide (25mA)?
You said you found a short--great! That's probably it then. Did you fix it?
Is the connection between the PICkit 2 and your circuit correct (connector not reversed)?
Just saw this: you have no current limiting resistors in series with your LEDs. Maybe that's not a problem for the PIC, during programming, when the I/O should be in a tri-state mode, but normally you should have some resistor value there--otherwise you operate at the the maximum port current Disconnect the LEDs to simplify the troubleshooting process.
Can you show a screenshot or two of your PICkit 2 setup?
 
  • #3
Thanks for replying.

Going down the list:
I have the latest PICKit 2 version.
It is set up to provide power.
It is not exceeding 25mA. The PICKit 2 can fully support a PIC18F45J10 (according to PICKit 2 documentation and PIC datasheet).
The "VDD Short found" was a message from the PICKit 2 software. I cannot find the short, I have wired my PIC according to what the schematic shows and according to what I know, there shouldn't be a short.. as you say, this is probably the problem. But I can't find it..
The connector is plugged into the header correctly.
Yes I noticed this also, however it isn't an issue at the moment, I have temporarily disconnected the LEDs from the main circuit (including all connecting wires to make sure there wasnt a short there) until I can get the PICKit 2 to successfully pick up my PIC and communicate with it.
I don't have a camera atm, but will post pictures as soon as I am able.
 
  • #4
Is it possible that the PIC pin 1 is not where it should be (PIC rotated 180)?
Can you power this from an external supply (no PICkit 2 pod attached) to see if the short is real?
Do you have another known good PIC circuit that you can use to verify the wellness of the PICkit 2?
 
  • #5


Hello,

Thank you for reaching out for help with your PIC18F45J10 wiring issue. I understand the importance of precise and accurate wiring when it comes to working with microcontrollers.

From your description, it seems like you have followed the general wiring guideline provided in the datasheet. However, it is possible that there may be a small error or oversight in the wiring that is causing the VDD short.

I would recommend double-checking all of your connections and using a multimeter to ensure that there are no shorts or incorrect connections. It may also be helpful to consult with a more experienced individual or refer to online forums for troubleshooting tips specific to your setup.

Additionally, I would suggest checking the datasheet for any specific recommendations or requirements for wiring the PIC18F45J10 to a PICKit2 Programmer. Sometimes, there may be specific pins or settings that need to be adjusted for successful programming.

I hope this helps and that you are able to resolve your issue. Good luck with your project!
 

Related to Troubleshooting PIC18F45J10 Wiring with PICKit2 Programmer

1. How do I troubleshoot wiring issues with my PIC18F45J10 using a PICKit2 programmer?

To troubleshoot wiring issues with your PIC18F45J10, first ensure that all connections are secure and properly soldered. Check for any loose or damaged wires and replace them if necessary. Next, use a multimeter to test the continuity of each wire and make sure they are connected correctly. You can also try using a different PICKit2 programmer to see if the issue is with the programmer itself.

2. Why am I getting programming errors when trying to program my PIC18F45J10 with a PICKit2 programmer?

There could be several reasons for programming errors when using a PICKit2 programmer. First, make sure that the PICKit2 is selected as the programmer in your programming software. Also, check that the correct device is selected and that the programming voltage is set correctly. If the issue persists, try using a different USB port or replacing the USB cable. It is also possible that the PICKit2 programmer or the PIC18F45J10 chip itself is damaged and needs to be replaced.

3. How do I know if my PIC18F45J10 is receiving power from the PICKit2 programmer?

The PIC18F45J10 can receive power from the PICKit2 programmer through the VDD pin. To check if your chip is receiving power, use a multimeter to measure the voltage at the VDD pin. The voltage should be around 5 volts. If there is no voltage or it is significantly lower, there may be an issue with the connection or the power supply of the programmer.

4. Why is my PIC18F45J10 not responding to programming commands from the PICKit2 programmer?

If your PIC18F45J10 is not responding to programming commands, there may be an issue with the communication between the programmer and the chip. Check that all connections are secure and that the correct device is selected in your programming software. It is also possible that the chip is locked or protected, preventing it from being programmed. In this case, you may need to use a different programming method or try erasing the chip first.

5. Can I use a PICKit2 programmer to program other PIC microcontrollers?

The PICKit2 programmer is designed specifically for programming PIC microcontrollers. However, it may not be compatible with all PIC models. It is important to check the device list of the PICKit2 programmer to see which microcontrollers are supported. If your desired microcontroller is not listed, you may need to use a different programmer or programming method.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
Replies
4
Views
791
  • Electrical Engineering
Replies
6
Views
3K
Replies
7
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
Replies
31
Views
4K
  • Electrical Engineering
Replies
11
Views
1K
  • Electrical Engineering
Replies
5
Views
1K
  • Electrical Engineering
Replies
22
Views
3K
  • Electrical Engineering
Replies
8
Views
1K
Back
Top