Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC16F84A winpic programming problem

Status
Not open for further replies.

lloydi12345

Member
Hello, it is my first time on programming a PIC and i would like to start from PIC16F84A. I used WINPIC and had an error "ERROR: Programming FAILED !" The codes turned red..

I copied this messages from the Messages tab:

Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x000011
Verify Error: 000000: read 000001, wanted 001683
Verify Error: 000001: read 000001, wanted 003000
Verify Error: 000002: read 000001, wanted 000086
Verify Error: 000003: read 000001, wanted 0030FF
Verify Error: 000004: read 000001, wanted 000085
Verify Error: 000005: read 000001, wanted 001283
Verify Error: 000006: read 000001, wanted 003000
Verify Error: 000007: read 000001, wanted 000086
Verify Error: 000008: read 000001, wanted 001805
Verify Error: 000009: read 000001, wanted 00280D
Verify Error: 00000A: read 000001, wanted 003001
Verify Error: 00000B: read 000001, wanted 000086
Verify Error: 00000C: read 000001, wanted 002808
Verify Error: 00000D: read 000001, wanted 001885
Verify Error: 00000E: read 000001, wanted 002808
Verify Error: 00000F: read 000001, wanted 003002
Verify Error: 000010: read 000001, wanted 000086
Programming aborted after 17 errors.
Suspicious: Buffer contains no data for the CONFIGURATION BITS.
Programming CONFIG-WORD

Can you help me how to program my PIC? I made my own PIC Programmer based from JDM Programmer but omitted the IC sockets. I am using the ICSP method. My PIC is placed on the breadboard and I'm just connecting the 4 wires from the programmer to its corresponding pin.

I am using the JDM programmer from this site:

**broken link removed**


These are the 6 wires I've used:

1- connected to MCLR pin of PIC16F84A
2- not used
3- connected to the ground (somewhere around the keyboard)
4- connected to RB7
5- connected to RB6
6- not used
 
Sorry, but JDM programmers are well known for been unreliable, as they rely on the serial port handshaking lines exceeding the RS232 specification.

If you're using a modern PC, or a laptop, it's unlikely to work.
 
Is the chip powered? Pin #2 of the standard ICSP connector is power.

Hi Jon, okay here's an update of my pic programmer..

What i did is, in a breadboard I plugged my PIC 16F84A.

Here are the ICSP wires from the JDM programmer circuit board I made that is plugged at the CPU. The red LED and yellow LED turns on. (no sign of green LED)

1st Wire (MCLR) - I used a canon adapter which gives around 13-15v when measured on a multi tester. I connected the adapter's output voltage to the MCLR pin of the PIC16F84A using a jumper wire. I also connected at the same time the 1st wire of the ICSP wires on the same connection.

2nd Wire (VCC) - I used my cellphone charger which gives an 8v. I connected it on a 7808 voltage regulator. Its output then is 6.5v so I connected it again to another 7808 voltage regulator. Now I have 5v on its output. I connected the 5v to the 2nd wire of the ICSP wires.

3rd Wire (GND) - I connected the 3rd wire of the ICSP wires in the ground of my circuit in the breadboard.

4th Wire (PGD) - I connected the 4th wire to the RB7 Pin of PIC16F84A.

5th Wire (PGC) - I connected the 5th wire to the RB6 Pin of PIC16F84A.

6th Wire (GND) - I connected the 6th wire on the same line of the 3rd wire.


I hope you could get what I'm saying here.

When I tested it on WINPIC. I loaded a .hex file on the PIC and here are the messages on Messages Tab.

Info: Loading definitions for "PIC16F84A" from devices.ini .
Info: PIC16F84A added and tested by FENG3
Couldn't find "devices\PIC16F84A.dev", please borrow/copy from MPLAB !
Failed read back of DATA line (HIGH) !
WARNING: Could not initialize programmer !
Testing: delay(500ms) took 0.50 seconds, timer_freq=2.6016 MHz ... ok
Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x00000D
Verify Error: 000000: read 000000, wanted 001683
Verify Error: 000001: read 000000, wanted 003000
Verify Error: 000002: read 000000, wanted 000086
Verify Error: 000003: read 000000, wanted 000085
Verify Error: 000004: read 000000, wanted 001283
Verify Error: 000005: read 000000, wanted 0030FF
Verify Error: 000006: read 000000, wanted 000085
Verify Error: 000007: read 000000, wanted 000086
Verify Error: 00000A: read 000000, wanted 003000
Verify Error: 00000B: read 000000, wanted 000085
Verify Error: 00000C: read 000000, wanted 000086
Verify Error: 00000D: read 000000, wanted 002805
Suspicious: Buffer contains no data for the CONFIGURATION BITS.
Programming CONFIG-WORD
Verify Error: 002007: read 000000, wanted 003FFF
ERROR: Programming FAILED !


I tried also WinPic800. When I click "Hardware Test". It says Failed to open Ind.#0.

I think my computer wont detect my PIC.


I used this site: **broken link removed**

and designed the programmer myself by only using the ICSP technology without the need of plugging the PIC on the programmer board when I am programming it.
 
Is the chip powered? Pin #2 of the standard ICSP connector is power.


What i did is, in a breadboard I plugged my PIC 16F84A.

Here are the ICSP wires from the JDM programmer circuit board I made that is plugged at the CPU. The red LED and yellow LED turns on. (no sign of green LED)

1st Wire (MCLR) - I used a canon adapter which gives around 13-15v when measured on a multi tester. I connected the adapter's output voltage to the MCLR pin of the PIC16F84A using a jumper wire. I also connected at the same time the 1st wire of the ICSP wires on the same connection.

2nd Wire (VCC) - I used my cellphone charger which gives an 8v. I connected it on a 7808 voltage regulator. Its output then is 6.5v so I connected it again to another 7808 voltage regulator. Now I have 5v on its output. I connected the 5v to the 2nd wire of the ICSP wires.

3rd Wire (GND) - I connected the 3rd wire of the ICSP wires in the ground of my circuit in the breadboard.

4th Wire (PGD) - I connected the 4th wire to the RB7 Pin of PIC16F84A.

5th Wire (PGC) - I connected the 5th wire to the RB6 Pin of PIC16F84A.

6th Wire (GND) - I connected the 6th wire on the same line of the 3rd wire.


I hope you could get what I'm saying here.

When I tested it on WINPIC. I loaded a .hex file on the PIC and here are the messages on Messages Tab.

Code:
Info: Loading definitions for "PIC16F84A" from devices.ini .
Info: PIC16F84A added and tested by FENG3
Couldn't find "devices\PIC16F84A.dev", please borrow/copy from MPLAB !
Failed read back of DATA line (HIGH) !
WARNING: Could not initialize programmer !
Testing: delay(500ms) took 0.50 seconds, timer_freq=2.6016 MHz ... ok
Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x00000D
Verify Error: 000000: read 000000, wanted 001683
Verify Error: 000001: read 000000, wanted 003000
Verify Error: 000002: read 000000, wanted 000086
Verify Error: 000003: read 000000, wanted 000085
Verify Error: 000004: read 000000, wanted 001283
Verify Error: 000005: read 000000, wanted 0030FF
Verify Error: 000006: read 000000, wanted 000085
Verify Error: 000007: read 000000, wanted 000086
Verify Error: 00000A: read 000000, wanted 003000
Verify Error: 00000B: read 000000, wanted 000085
Verify Error: 00000C: read 000000, wanted 000086
Verify Error: 00000D: read 000000, wanted 002805
Suspicious: Buffer contains no data for the CONFIGURATION BITS.
Programming CONFIG-WORD
Verify Error: 002007: read 000000, wanted 003FFF
ERROR: Programming FAILED !



I tried also WinPic800. When I click "Hardware Test". It says Failed to open Ind.#0.

I think my computer wont detect my PIC.

I used this site: **broken link removed**

and designed the programmer myself by only using the ICSP technology without the need of plugging the PIC on the programmer board when I am programming it.
 
Ummmm....isn't that interesting?

The programmer should take care of supplying the correct voltage at the correct time to /MCLR.

JDM programmers are known to be picky about what serial port they use. Some USB-serial converters work and others don't.

I would suggest getting a PICkit 2 programmer from Microchip. They are $35 and sweet. They work every time and make programming a chip a cinch.
 
Ummmm....isn't that interesting?

The programmer should take care of supplying the correct voltage at the correct time to /MCLR.

JDM programmers are known to be picky about what serial port they use. Some USB-serial converters work and others don't.

Do any USB/Serial converters work? - I haven't heard of any?, the obscure way JDM's work means it's not likely to work, and nor is it likely to generate the excessive RS232 voltages required.

PICKit2 is the way to go - JDM's were probably the worst ever programmer design, and account for almost all programming problems.
 
I've heard of success using certain converters but it's pretty hit or miss. For not much more money and a lot less screwing around, you can have a PICKit 2. It also has a simple logic analyzer and UART tool, so it's a grat deal.

I was amazed at how easy getting code into a PIC can be with the PICkit 2. Compile, then press the button on the PICKit to load the new code. No sweat at all!
 
Here is a circuit that increases the Vpp voltage via 4 tiny button cells:
**broken link removed**
Make sure the 13v red LED illuminates and measure the voltage. It MUST be 13.5v for the chip to go into program-mode.
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top