Hi
I am trying to build a pulse counter , which give me amount of pulses , like 50 ,150 , 300 etc when i push a button
I am using 16f877a , I have it counting up 255 , but cant make count more then 255 ,
thanks
loop movlw 0xff ;
xorwf count1,w;
btfsc STATUS,Z
goto loop ;
incf count1,f;add one to count
goto again ;keep counting
I am trying to build a pulse counter , which give me amount of pulses , like 50 ,150 , 300 etc when i push a button
I am using 16f877a , I have it counting up 255 , but cant make count more then 255 ,
thanks
loop movlw 0xff ;
xorwf count1,w;
btfsc STATUS,Z
goto loop ;
incf count1,f;add one to count
goto again ;keep counting