
In this program we are going to count the number of times a switch pressed,and displaying it on a LCD .. and each time the switch pressed a LED will lighted up.
First create a new project and add a c main file like in the steps for Blinking a LED using MPLAB X , PIC16F877A
Components
1. PIC16F877A micro controller
2. animated LED
3. A toggle switch
4.16x2 LCD display
Steps in the program
1. define the......