Gayan Soyza
Active Member
I have been fine tuning my 5(columns) X 7(rows) matrix system using 74HC164.
But still I'm not getting a smooth display result.I'm doubt with the "Clock_Pulse" routine.
But still I'm not getting a smooth display result.I'm doubt with the "Clock_Pulse" routine.
Code:
Do_Show call Reset ;reset 74HC
bsf Data ;make 74HC data pin high for the first time
movf Col1,W
call Clock_Pulse
bcf Data ;make 74HC data pin low
movf Col2,W
call Clock_Pulse
movf Col3,W
call Clock_Pulse
movf Col4,W
call Clock_Pulse
movf Col5,W
call Clock_Pulse
goto Do_Show
Clock_Pulse movwf Col_Data ;get the column data
clrf PORTB
bsf Clock ;low to high transition
bcf Clock ;make low for next transition
movf Col_Data,W
movwf PORTB
return