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 20th November 2007, 07:02 AM   (permalink)
Default PIC16F877A charging problem

I write program for PIC in MPLAB, test simulation in Proteus, all compiling and simulation is okey.
Before load the program for PIC (.hex file) I test voltage's value of all pins.
After load program to PIC, I see that which pins have high value voltage is unchanged, which pin has low voltage have the new value greater than before a little (before: 0.7V then after : 1.03V) and no pins change value from high to low or vice versa.
I check and see that the program is loaded successfully to PIC, but seem that it is mostly like before ???
Could you tell me what problem with it ???
Thanks so much !!!
eleceyes is offline  
Reply With Quote
Old 20th November 2007, 09:19 AM   (permalink)
Default

Either your hardware is faulty, or your software is faulty - or both!. As you give neither there's not much help we can offer?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply With Quote
Old 21st November 2007, 03:58 AM   (permalink)
Default

When I verify my .hex file it says "error verifying address 0x000000 verified 2805 read 3fff"
in this case, when I continue to "Program all" to charge for PIC, does it accept charging ?
I am using winPic800 (GTP-USB programmer)
When I plug my GTP-USB by cable adaptador USB, I measure the voltage in between Vpp and GND of ICSP connector, it is about 7.86V ???

Here is my circuit in Orcad
http://img214.imageshack.us/img214/9985/23284114xk1.jpg
Here is simulation in Proteus
http://img158.imageshack.us/img158/613/68078519tx5.jpg
eleceyes is offline  
Reply With Quote
Old 21st November 2007, 07:50 AM   (permalink)
Default

It's not programming at all then, 0x3FFF is what a completely blank PIC reads - it's most probably not getting switched to programming mode.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply With Quote
Old 21st November 2007, 07:59 AM   (permalink)
Default

so that is the error that PIC charged nothing ?!!
Could you tell me the way to stop this error to enable entering to programming mode, modify my assembly code or using another version of winpic800 or ...
Thanks !!!
edit: I do searching and see that maybe I have to change these parameter of my code
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _RC_OSC & _WRT_OFF & _LVP_ON & _CPD_OFF
but don't sure how

Last edited by eleceyes; 21st November 2007 at 08:07 AM.
eleceyes is offline  
Reply With Quote
Old 21st November 2007, 09:42 AM   (permalink)
Default

Sounds like your programmer isnt working? - Vpp needs to be 13V to switch the PIC to programming mode, so that sounds like an obvious problem?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply With Quote
Old 22nd November 2007, 07:06 AM   (permalink)
Default

well, follow what you say I think I found a problem on the GTP-USB circuit, that is in Voltage multiplier, as you see in this image http://img211.imageshack.us/img211/4945/gtpusbjj8.gif, it says it output two 13.5VDC but when I measure, it just output 7.7V and 9.4V. Check the circuit I see that the parameters of components is correct, the circuit is right connecting, RA0-RA3 output 2.2V.
Any ideas about this
eleceyes is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
JDM programmer problem krvavizmaj Micro Controllers 3 2nd October 2007 08:35 AM
Big problem!! zezito Electronic Projects Design/Ideas/Reviews 4 29th October 2004 02:05 AM
Problem with My A/D readings. Any suggestions? cubdh23 Micro Controllers 4 24th September 2004 04:21 AM
Mysterious Problem! matasoft Micro Controllers 15 11th September 2004 07:49 PM
12F675 Problem brodin Micro Controllers 10 29th December 2003 09:40 PM



All times are GMT. The time now is 07:28 AM.


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