Welcome,
My assembly is really bad, but this might be the problem.
I think it is stuck in a NOP loop.Code:Loop NOP goto Loop
Try the PB demo
http://www.melabs.com/pbpdemo.htm
Welcome,
My assembly is really bad, but this might be the problem.
I think it is stuck in a NOP loop.Code:Loop NOP goto Loop
Try the PB demo
http://www.melabs.com/pbpdemo.htm
Dave
Always wear safety glasses while programming.
Thanks for reply, i tried it but it didnt workIn some samples i have seen this kind of infinite loop being used, i dont know why it is there.
With LVP enabled you need to ground RB3 for normal operation. If this pin is left floating or
high it thinks the PIC is in programming mode, and will not execute your code.
Read section 12.17 in your data sheet and look at note 4 in the grey area.
It can definitely be frustrating, but hang-in there...;O}
Which device programmer are you using?
Have you programmed another PIC succesfully with this programmer?
Have you checked every single connection with a volt-meter?
Have you tried another oscillator?
A LOT of factors are involved. Even with a simple program like yours just
making a pin high.
Thanks
The programmer is designed by engineers of a finnish IT magazine, which they released to the magazine and to the web. So it is not any common model. The program that uses the programmer is too written by them. http://www.mbnet.fi/nettijatkot/2002/03/rakentelu/
first link under "Kopioitavat tiedostot" leads to circuit board model with EAGLE. The third is for Visual basic source code.
In the program you can define only if watchdog is on, choose to verify written data and repair errors and choice of oscillator.
This is first chip im trying to program and i have checked connections with multimeter.
Unfortunately i dont have another oscillator.. and theres not oscilloscope to test it. One thing pops to my mind: the wires to oscillator are about 6cm long, could it be bad? As a poor student i have kind of home made breadboardand it is not too easy to solder close to the PIC.
Hi Viberer,
I do not use LVP, I have a six dollar JDM clone from Bulgaria I bought on eBay, and I use ICPROG a freeware programming software. Recently I began programming 16F88 for the first time, and my programmer balked and complained and refused to verify the chips, of coarse I thought, darned sample chips, darned cheap programmer . . . What I found works is to power the PIC from a 5 volt supply while programming and viola' it programs fine.
HTH
JS
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Try the attached HEX file. If it works your programmer is probably OK. If not, check everything else.
Note this will blink an LED on RB0.
Bookmarks