Are you using this now on the actual machine, or just with LEDs? I am thinking reverse transients from relays or DUT, (device under test). All inductive devices must use snubber diodes and do not forget to use bypass caps on the PIC, which should be isolated from DUT.
How are your Config statments set?
You have analog stuff still turned on, ANSEL and ADCON0 need to be set.
ANSEL = 0
ADCON0 = 0
PCON = %00000011 ' BOD off, No POR flag set
Last edited by Archangel; - 20th July 2009 at 17:02.
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