pic won't run hex code

Moderator: Benj

Post Reply
djenn
Posts: 3
Joined: Mon Dec 03, 2012 9:27 am
Has thanked: 1 time
Contact:

pic won't run hex code

Post by djenn »

I am trying before buying this program, and have a strange problem.
I can build the flowchart, it runs good with the stuff i put on the panel, it even compiles good.
However my pic 16f628a refuses to run the compiled code.
I'm sure the fuses are all right, the speed is good,the programmer is getting the code in the pic.
I wonder where it's going wrong.
Okay, I'm pretty much a newbie but when i use Proton Basic for example every thing is going well.
I hope there is a reason and someone can explain.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: pic won't run hex code

Post by medelec35 »

Hi djenn,
Usual suspects is either watchdog timer is enabled, or MLCR is enabled and MCLR is not tied up to +VCC (either directly or via a pull-up resistor if using ICSP) or wrong osc type selected etc.

My advice would be to take a look here:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936

When you load hex file into your programmer (If not using EB006 programmer)
Should show all the fuses.

If so check the ones I have just mentioned.

Sorry It will be difficult to assist you further until you post your hex file and flowchart.

Martin
Martin

djenn
Posts: 3
Joined: Mon Dec 03, 2012 9:27 am
Has thanked: 1 time
Contact:

Re: pic won't run hex code

Post by djenn »

Thank you so much !!!
The topic you adviced me to read told me to read the manuals before complaining.
I forgot to set the internal oscilator at the proper speed and not the rc oscilator, I feel so foolish right now :oops:
Thanks a lot again.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: pic won't run hex code

Post by medelec35 »

Hi djenn,
your welcome.

No need to feel foolish!
We have all done things like not set osc correctly.
It's how we learn.

Glad your sorted and thanks for letting us know.

Martin.
Martin

Post Reply