Gayan Soyza
Active Member
I built a 2digit up counter from pic16f84a..when the RB0 button pressed each time the display counts up one by one....it can counts up to 99....
RB0-switch
RB1-Rb7 -7 segmants
RA0-Digit 2 driving transistor
RA1-Digit 1 driving transistor
My problem is its counting in a messy way (not in the proper order 1,2,3....).
so I changed my Delay when higher delays its counting correctly.but the two displays are blinking....
here I didn't debounce the button(I dont know the debounce codings).I think the delay is too fast for the switch.
How to prevent this I need a smooth count when a button is pressed.
I have attached the cct & the codings......
RB0-switch
RB1-Rb7 -7 segmants
RA0-Digit 2 driving transistor
RA1-Digit 1 driving transistor
My problem is its counting in a messy way (not in the proper order 1,2,3....).
so I changed my Delay when higher delays its counting correctly.but the two displays are blinking....
here I didn't debounce the button(I dont know the debounce codings).I think the delay is too fast for the switch.
How to prevent this I need a smooth count when a button is pressed.
I have attached the cct & the codings......