hi friends
i need help in developing a program which will count each time by push button. I am using proton ide for programming.
i added one 7segment on B0-B7
i am able to light up a digit but i don't know how to put command for push button as an increament
here i started,
Device 16F877A
Xtal 20
TRISB=%00000000
PORTB = %00111111 'zero' PORTB = %00000110 'one' PORTB = %01011011 'two & so on' PORTB = %01001111 PORTB = %01100110 PORTB = %01101101 PORTB = %01111100 PORTB = %00000111 PORTB = %01111111 PORTB = %01100111
main:
GoTo main
i need help in developing a program which will count each time by push button. I am using proton ide for programming.
i added one 7segment on B0-B7
i am able to light up a digit but i don't know how to put command for push button as an increament
here i started,
Device 16F877A
Xtal 20
TRISB=%00000000
PORTB = %00111111 'zero' PORTB = %00000110 'one' PORTB = %01011011 'two & so on' PORTB = %01001111 PORTB = %01100110 PORTB = %01101101 PORTB = %01111100 PORTB = %00000111 PORTB = %01111111 PORTB = %01100111
main:
GoTo main