
Originally Posted by
financecatalyst
Hi
I am using an external oscillator 4MHz. My program simply toggles one pin every 30ms.
Problem is that I see sometimes the toggling if I touch the PIC,leg of the capacitor (earth) or touch the bench the circuit is left on and sometimes it works fine and sometimes the led is just on constantly.
What could be the reason for this???
My first impulse would be stray capacitance. Pins should be pulled high or to ground with resistors and never left floating.
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.
Bookmarks