Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 4th August 2007, 01:46 AM   (permalink)
Default Is there a guide for using Winpicprog with P16PRO40

I have wrote the code in need for my circuit and am ready to program a PIC with it... but I am having some problems. (FYI - I am trying to program a 877A suing a p16pro40 with Nigel's winpicprog)
  • Does a detailed guide exist for how to use winpicprog with p16pro40?

I have looked on Nigel's site, which is very helpful, but I would not find a detailed description of what I need to do and in what order. For example:
  • In what order do I plug in the p16pro40, power and PIC?

  • When do I start winpicprog... before or after I connect the p16pro40 and/or PIC?

  • What is the Vpp40 led for?

  • If the program led is on without a PIC in the programmer is it ok to put the PIC in?

  • What should I set the oscillator setting to for my p16pro40 (image attached)? Is that for setting what type of oscillator is on the p16pro40 or for what the circuit that I am going to put the PIC into after it is programmed?

  • When do I open the hex file? Before or after the PIC is in the p16pro40?

As you can tell I am just trying to learn more about this stuff and any help you can give me would be great. I hope that one day I can contribute in helping others... but I am still trying to learn more.

If there is a guide out there already that answers these questions please let me know. Thank you.
Attached Images
File Type: jpg p16pro40.JPG (16.4 KB, 30 views)

Last edited by ChemE; 5th August 2007 at 04:24 AM.
ChemE is offline  
Reply With Quote
Old 4th August 2007, 04:10 AM   (permalink)
Default

here's how i do it, it works.
programmer is connected to parallel port and then powered up.
start winpicprog.
put chip in socket.
load hex file.
download code to chip.
take chip out.
power down programmer.
wonder why the code doesn't work.
oscillator refers to the chip you're programming, in it's final circuit.
vpp40 led indicates a 40 pin chip is being programmed [if i remember rightly].

Last edited by monkeybiter; 4th August 2007 at 05:23 AM.
monkeybiter is offline  
Reply With Quote
Old 4th August 2007, 02:27 PM   (permalink)
Default

Thanks for the reply Monkeybiter.
  • Does anyone know if it is normal for the program LED to turn on when I start up winpicprog and before I have put a PIC into the socket?

  • Is it ok to put a PIC into the socket when that LED is on?

  • If the program LED is on how can I shut it off with winpicprog or can I even?

Just trying to learn what I can so I avoid breaking my PIC. Thanks for the help.
ChemE is offline  
Reply With Quote
Old 4th August 2007, 02:32 PM   (permalink)
Default

When it's running properly the LED should go off when it's not programming.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply With Quote
Old 5th August 2007, 01:39 AM   (permalink)
Default

I have am having some problems maybe someone can help.

So this is what is happening:
  1. I plug in the p16pro40 into the computer
  2. Then I put power to the p16pro40 using three 9v batteries in series
  3. The Vpp LED turns on
  4. Then I start up winpicprog

This is were I have the problem the program LED turns on when I start winpicprog.
  • Does anyone have any troubleshooting ideas?

I have no idea what to do any help would be great thanks!
ChemE is offline  
Reply With Quote
Old 5th August 2007, 08:56 AM   (permalink)
Default

ChemE:

Your programmer has not been checked out properly. So, do not place any PIC into the socket at the moment until you have sorted out that the programmer is functioning properly.

To check it out, you'll need a voltmeter and a resistor of 33~220 ohm. The checking will be done in two steps, first without connection to PC parallel port. No PIC is needed in these two steps.

While I am writing the test procedures, would you please provide answers to these questions so that we can give you a more detailed help:

1. What version of OS are you using? WinXp/2K or Win98SE, OSx? Desktop or laptop computer?

2. Have you bought or built the P16PRO40 exactly to the schematic diagram at Nigel's website, using the TTL inverters as mentioned? Have you changed any parts/inverter to other matching 'equivalent' component? If so, what are they?

3. can you show us a picture of the programmer?
__________________
L.Chung
eblc1388 is offline  
Reply With Quote
Old 5th August 2007, 02:30 PM   (permalink)
Default

Quote:
1. What version of OS are you using? WinXp/2K or Win98SE, OSx? Desktop or laptop computer?
Winxp tried both Desktop and Laptop


Quote:
2. Have you bought or built the P16PRO40 exactly to the schematic diagram at Nigel's website, using the TTL inverters as mentioned? Have you changed any parts/inverter to other matching 'equivalent' component? If so, what are they?
I didn't build it, I bought it off Ebay. I have an SN74S06N


Quote:
3. can you show us a picture of the programmer?
I have a picture on the first post I made.

Last edited by ChemE; 5th August 2007 at 02:33 PM.
ChemE is offline  
Reply With Quote
Old 5th August 2007, 04:14 PM   (permalink)
Default

Inside WinPicProg software, you can configure which version of P16PRO40 hardware is being used.

I don't quite catch what you mean by "I have an 74S06N". The following checks assume the one you have bought from eBay has a 74S06N on it.

You can access the menu via "Options>>Hardware" and then "Programmer Types" and select P16PRO40-7406 as your choice. Then all your LEDs except the power green LED will be off.

If that is not the case, then you can manually invert the LED states via putting a tick in the option at the bottom of the signal as shown.

The desire result is after you have started up WinPicProg, with the parallel cable connected and the P16PRO40 powered up, the two RED LEDs should be off. Then without a PIC in the socket, selects 16F877 in WinPicProg and performs a "READ" operation. The Vpp40 red LED will light up and you can measure +13V at socket pin 1. Also confirm +5V available at socket pin 32. After the READ operation finished, these two voltages will drop to zero. You can perform the READ operation as many times as required to confirm the meter reading. Again, if the desired state comes up inverted, put a tick in the bottom to invert it.

Edited: The two red LEDs marked "Vpp40" and "Program" display the voltage level of Vpp40 and Vpp.
Attached Images
File Type: gif pi6pro.gif (47.2 KB, 16 views)
__________________
L.Chung

Last edited by eblc1388; 6th August 2007 at 10:52 AM.
eblc1388 is offline  
Reply With Quote
Old 5th August 2007, 04:43 PM   (permalink)
Default

Quote:
I don't quite catch what you mean by "I have an 74S06N". The following checks assume the one you have bought from eBay has a 74S06N on it.
All I was trying to say was that I had that type of chip on the programmer and that is the hardware setting I have been using in winpicprog.

I never mentioned that I am using the beta version of winpicprog so that I can program a 877A... wonder if that changes anything for troubleshooting.

I just took some pictures of my P16pro40 because I noticed that the picture in my original post (which I took from a website) has 1 difference from mine. My programmer has a resister next the 40th pin instead of a jumper (like the original pictures shows)... should I be concerned about that?

I am going to attempt what you have wrote and let you know what happens. Thank you for taking the time to help me troubleshoot!
Attached Images
File Type: jpg Picture2 009 (Large).jpg (113.5 KB, 13 views)
File Type: jpg Picture2 018 (Large).jpg (126.8 KB, 18 views)
File Type: jpg p16pro40 comparison.jpg (80.7 KB, 7 views)

Last edited by ChemE; 5th August 2007 at 07:43 PM.
ChemE is offline  
Reply With Quote
Old 5th August 2007, 05:58 PM   (permalink)
Default

Quote:
Originally Posted by ChemE
I never mentioned that I am using the beta version of winpicprog so that I can program a 877A... wonder if that changes anything for troubleshooting.
No issues there.

Quote:
Originally Posted by ChemE
My programmer has a resister next the 40th pin instead of a jumper (like the original pictures shows)... should I be concerned about that?
No. It looks(a black band in the middle) as if it is indeed a zero ohm resistor used as jumper.
__________________
L.Chung
eblc1388 is offline  
Reply With Quote
Old 6th August 2007, 12:18 AM   (permalink)
Default

eblc1388,

OK I played around with the hardware settings and was able to get the program LED 'off' but I am unable to get the vpp40 LED to come 'on' at all.

Neither the program or vpp40 LED come 'on' when I click the "Read PIC" button. Are they suppose to come 'on' and stay 'on' during the reading process?

So next I checked pins 1 and 32.
  • Pin 32 - Goes to +5v for a few seconds when it is reading then goes back to zero
  • Pin 1 - Goes to +13v for a few seconds when it is reading but then goes to 9 - 9.2v
Attached Images
File Type: jpg p16pro40 comparison.jpg (80.7 KB, 5 views)
ChemE is offline  
Reply With Quote
Old 6th August 2007, 08:13 AM   (permalink)
Default

Quote:
Originally Posted by ChemE
eblc1388,

OK I played around with the hardware settings and was able to get the program LED 'off' but I am unable to get the vpp40 LED to come 'on' at all.

Neither the program or vpp40 LED come 'on' when I click the "Read PIC" button. Are they suppose to come 'on' and stay 'on' during the reading process?
Yes they are - if you go to the Hardware menu it gives you manual toggle buttons, so you can manually toggle the output lines and measure the voltages.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply With Quote
Old 6th August 2007, 08:19 AM   (permalink)
Default

Ok. I see the problem on your board.

Note that the LED label should actually be "Power(green)", "Vpp40(red)" and "Vpp(red)" instead of the original "Vpp", "Vpp40" and "Program". The +5V that goes to the PIC is not indicated by any LED in this design.

You need to carry out these two modifications shown on the image and the board and LED will then behave normally and you can turn ON/OFF the LEDs in WinPicProg.

Basically, the green power LED has pulled up the cathode voltage of the other two LEDs so that they are reverse biased and will not light. This is taken care of by cutting off the track to separate the green Power LED circuit from the two others LEDs and add an extra 1K resistor for itself. This green power LED will light once you have DC power to the board.

The second modification adds a discharge resistor to the MCLR on pin1 so that when the Vpp40 turns OFF, the voltage on the pin will drops to zero instead of +9V.

Hope it works out for you this time.

Edited: Uploaded schematic to show the modification
Attached Images
File Type: jpg mod1.jpg (62.0 KB, 11 views)
File Type: gif mod2.gif (18.3 KB, 23 views)
__________________
L.Chung

Last edited by eblc1388; 6th August 2007 at 09:47 AM.
eblc1388 is offline  
Reply With Quote
Old 6th August 2007, 11:53 AM   (permalink)
Default

Thank you for taking the time to look over my p16pro40 board.

Before I proceed with these modifications I want to let you know that I am able to turn off/on the program LED using winpicprog but unable to get the Vpp40 LED to do anything.
  • Does being able to turn off/on the program led change anything? I just want to make sure before I proceed.
  • Do you have any idea why this programmer was built wrong to begin with? I wonder if a lot of other people had this problem with this board as well.

Thank you again for all your help and I'll let you know how it turns out.
ChemE is offline  
Reply With Quote
Old 6th August 2007, 12:19 PM   (permalink)
Default

The modification of adding a resistor to MCLR pin1 is a known modification to the P16Pro40. This also solved the +9V problem you measured on pin1.

The board will work despite no indication on the Vpp40 LED so I guess nobody cares to raise/rectify the situation.

Remember also to change the labeling on the LEDs. This make setting up so much easier.
__________________
L.Chung
eblc1388 is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
WinPicprog and P16PRO40 OY2L Micro Controllers 23 5th July 2007 08:14 AM
Problem with Winpicprog and P16PRO40 mramos1 Micro Controllers 14 24th May 2006 06:36 PM
PIC programmer & WinPicProg: my findings eblc1388 Micro Controllers 5 27th August 2005 11:13 AM
Trouble with P16PRO40 bencanon Micro Controllers 35 16th July 2005 11:53 AM
P16Pro40 power supply and other stuff cubdh23 Micro Controllers 16 7th October 2004 09:25 PM



All times are GMT. The time now is 11:15 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.