So, you're switching on 5 LED's then switching them off again. That routine will run only once, and in fairness, there is in theory only half a second between the ON and OFF sequence. Do you have 5V on the MCLR pin?
So, you're switching on 5 LED's then switching them off again. That routine will run only once, and in fairness, there is in theory only half a second between the ON and OFF sequence. Do you have 5V on the MCLR pin?
There is a 22kOhms resistor from +5V to RA5 and from RA5 to Mass is a push-button. So without pressing the button it is +5V. But that shouldn't be important because of "@ DEVICE MCLR_OFF".
You might try using upper case letters in those DEVICE STATEMENTS and DEFINE. http://www.picbasic.co.uk/forum/showthread.php?t=558
Last edited by Archangel; - 26th July 2008 at 23:44.
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.
I did. This did not change anything.
I used this code before and it worked with exactly this chip.
I replaced the pic and it still did not work.
Do you know a better way of measuring the pic's quarz using a multimeter? I presume that having a 20Mhz Quarz is way out of this device's possibilities.
Last edited by Ted's; - 27th July 2008 at 00:18.
Bookmarks