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.
pic won't run hex code
Moderator: Benj
-
- 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
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
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
Re: pic won't run hex code
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
Thanks a lot again.
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
Thanks a lot again.
-
- 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
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.
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