Follow Joe advice with reference to the wording. Next you should associate the button name to an input pin of your pic. Using the TRIS command make two pins input and then associate them to your buttons alias.
Button1 VAR PORTB.0
Button2 VAR PORTB.1
I have used portB as an example you can use any port you will consider handy.
Remember to place a pulldown resistor (4.7 to 10k) and a 10 nanoFarad across
For debouncing
Cheers
Al.




Bookmarks