Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

16F877A is not recognized by Pickit 2

Status
Not open for further replies.

Snitch

Junior Member level 3
Joined
Jun 5, 2012
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Sri Lanka
Activity points
1,469
I connected my 16F877A to my new picKit 2. But it says "No device found". I tried selecting device manually. Still no progress.

I previously programmed this same pic using a pickit 2 of a friend. There was no problem. My 16F877A is working, because it acts according to the last program.

And I programmed an 18F452 using my picKit 2 and that was also done successfully.

Can anyone help me on this?

Thanks in advance.
 

Are you supplying power to the PIC via PICkit or external power supply?

Is the PICkit a clone or genuine?



Have you double check your connections?

Please post the PICkit to PIC connections.



Have you tied the PICs RB3/PGM pin to ground using a pulldown resistor and disabled LVP from within the Configuration Register settings?

LVP is enabled by default and if RB3/PGM is left floating, HVP using the PICKit may not be possible.

Please post your Configuration Register settings.


Another possible issue:

Programming Fails on Configuration

Question
Why does programming a device always fail on the Configuration Word(s), after which PICkit 2 won t
recognize the device?

Answer
This may be caused by a Configuration setting or program code that affects the ICSP PGD and PGC
pins. This interference can prevent the target PIC MCU from entering programming mode.
Check the menu option Tools>Use VPP First Program Entry when attempting a pro- gramming operation
on these devices. This program mode entry will usually get around the problem, but it requires that
the target device be powered from the PICkit 2 unit VDD
pin.



BigDog
 
I'm supplying power to the pic via pickit 2.

I think this is a clone. Because there's no trademark or any such thing of Microchip. Sorry for not being exact I have no way of finding that out..

I got the pic and attached it to the pic base on the picKit 2. That is how I connected it.

#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz)
#FUSES NOPUT //No Power Up Timer
#FUSES NOPROTECT //Code not protected from reading
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD //No EE protection
#FUSES NOWRT //Program memory not write protected

Any way for sure I could program this same pic with a similar programmer which was bought from where I bought mine.
 

The Pickit2 software on the PC has a troubleshoot mode that lets you manipulate each of the relevant programming lines (including Vpp and Vdd).

Check out that feature, and it will readily indicate if your Pickit has developed a problem.

If you are programming the chip in-circuit, make sure you dont have external components on the data and clock pins that could be loading the signals.

Regards,

Anand Dhuru
 
  • Like
Reactions: Snitch

    Snitch

    Points: 2
    Helpful Answer Positive Rating
check with another microcontroller if it works some problem with your current chip
 
  • Like
Reactions: Snitch

    Snitch

    Points: 2
    Helpful Answer Positive Rating
we encountered the same problem that before when we make our project.
kindly check the input supply pins if it works or try to check your connections to the pins.
 
  • Like
Reactions: Snitch

    Snitch

    Points: 2
    Helpful Answer Positive Rating
Thank you Bigdogguru, ard, rajudp and jobertt. I bought another 16F877A and it was recognized. I could program it. But I still don't know what was wrong with earlier pic. It's still working according to the program inside it.

Anyway thank you very much. :)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top