Wow what a video thanks donniedj I now understand.I applied Oznog codings it comes like this
Code:
btfsc PORTA,0 ;check the button is pressed?
goto SHOW ;NO its not pressed then display the digits
call DEL500mS ;YES its pressed then add a small debounce delay
btfss PORTA,0 ;check the button has it released?
goto SHOW ;NO then again show the digits
goto COUNTUP ;YES it has released then count up
But the problem is when increase the debounce delay time when i press the button & hold the segment displays going dim.When i reduce the debounce delay it counts up in a messy way.
can you tell me is my coding right & what modifications to be done?