[QUOTE=dragons_fire;49764]
Code:
DEFINE OSC 20
pause 500
trisa = 0 : trisb = 0 : trisc = 0 : trisd = 0
trise = 0 : trisf = 0 : trisg = 0 : trish = 0
start:
porta = $ff : portb = $ff : portc = $ff
portd = $ff : porte = $ff : portf = $ff
portg = $ff
pause 300
porta = 0 : portb = 0 : portc = 0 : portd = 0
porte = 0 : portf = 0 : portg = 0
pause 300
goto start
end
Easier to read in my mind
And accomplishes the same thing.
What I like to do when I'm having initial problems is something like this:
counter var word : trisb = 0 : trisd = 0
main:
counter = counter + 1
portb = counter.lowbyte : portd = counter.highbyte
goto main
Something simple like that. At least that way, on each successive pin, I'll see half the frequency of the previous pin.
All of the Vdd/AVdd tied together as well as the Vss/AVss? Multiple power/ground pins ya know... Actually, I know you know...Treadbot...worked...sort of...sorry to hear it didn't work 100% for ya. Looked like fun.
Pull up to +5v on MCLR? Preferably thru a resistor...
Volts on the OSC pins should give about a 1.5v signal, give or take a bit.
Bookmarks