![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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)
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:
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. Last edited by ChemE; 5th August 2007 at 04:24 AM. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
Thanks for the reply Monkeybiter.
Just trying to learn what I can so I avoid breaking my PIC. Thanks for the help. |
|
|
|
|
|
|
(permalink) |
|
When it's running properly the LED should go off when it's not programming.
|
|
|
|
|
|
|
(permalink) |
|
I have am having some problems maybe someone can help.
So this is what is happening:
This is were I have the problem the program LED turns on when I start winpicprog.
I have no idea what to do any help would be great thanks! |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) | |||
|
Quote:
Quote:
Quote:
Last edited by ChemE; 5th August 2007 at 02:33 PM. |
||||
|
|
|
|
|
(permalink) |
|
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.
__________________
L.Chung Last edited by eblc1388; 6th August 2007 at 10:52 AM. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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! Last edited by ChemE; 5th August 2007 at 07:43 PM. |
||
|
|
|
|
|
(permalink) | ||
|
Quote:
Quote:
__________________
L.Chung |
|||
|
|
|
|
|
(permalink) |
|
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. So next I checked pins 1 and 32.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
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
__________________
L.Chung Last edited by eblc1388; 6th August 2007 at 09:47 AM. |
|
|
|
|
|
|
(permalink) |
|
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.
Thank you again for all your help and I'll let you know how it turns out. |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |