hi,
I am building a project moving led array im using pic16f84a as my controller it is connected to 74ls164 shift registers. I can display characters but i cant make them shift ( move the character from right to left). anyone can help me sure would appreciate it.
This is the program in PBP that i've written (displays character that is in the label cnvrt but can't move them)
trisb=%00000000
trisa=%00000101
x var byte
z var byte
clock var porta.4
my_data var porta.1
reset var porta.3
portb=%11111111
porta=%00000000
pause 500
begin:
high reset
high my_data
low clock
for x=0 to 14
gosub cnvrt
portb = z
high clock
low my_data
low clock
pauseus 150
next
low reset
goto begin
cnvrt:
lookup x,[$3c,$5e,$6e,$76,$38,$ff,$89,$76,$76,$89,$ff,$81,$7 6,$76,$8f],z
return
Bookmarks