hello Guys
I have 1 7segment display which i want the segments to lit one bye one like a running wheel
this is the code i've tried:
Code:
segRoutine:
low PORTC.5
PORTD = $FE '11111110
Pause 1000
PORTD = PORTD << 1 '11111100
pause 1000
PORTD = PORTD << 1 '11111000
pause 1000
PORTD = PORTD << 1 '11110000
pause 1000
PORTD = PORTD << 1 '11100000
pause 1000
PORTD = PORTD << 1 '11000000
pause 1000
goto segRoutine
it works but the segments lit like A > A+B > A+B+C > A+B+C+D >.......
i want it to run one by one A > B > C > D > E > F.
any idea?
thx Guys
John
Bookmarks