PIC16F877A charging problem

Status
Not open for further replies.

eleceyes

New Member
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 !!!
 
Either your hardware is faulty, or your software is faulty - or both!. As you give neither there's not much help we can offer?.
 
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
**broken link removed**
Here is simulation in Proteus
**broken link removed**
 
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.
 
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:
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?.
 
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 **broken link removed**, 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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…