MrDEB
Well-Known Member
a real simple test code to make sure all the leds are operational but have gremlins in my code or pic?? must be a full moon
when I first apply power all the leds light. Then they all go off and then start cycling on/ off as per code. This should work?? Must have something really dumb in my code??
when I first apply power all the leds light. Then they all go off and then start cycling on/ off as per code. This should work?? Must have something really dumb in my code??
DEVICE = 18f2420
CLOCK = 8
INCLUDE "InternalOscillator.bas"
INCLUDE "SetDigitalIO.bas"
DIM x AS BYTE
x = 0
trisc =%00000000
portb = 0
WHILE true
FOR x = 0 TO 7
portc.bits(x) = 1
DELAYMS(1000)
portc.bits(x) = 0
DELAYMS(1000)
NEXT
WEND