INTERFACING PUSH BUTTON SWITCH WITH PIC MICROCONTROLLER
This article is meant for beginners in the field of microcontrollers. Here we use PIC Microcontroller 16F84A and MikroC Pro compiler. This tutorial assumes you have basic knowledge about programming PIC Microcontroller, else you read the article Blinking LED using PIC Microcontroller. In this tutorial we use a push button switch, when we press on it an LED glows for a second. Push Buttons are mechanical switches. Then can make or break connection between two terminals and comes back to stable state when released. They are called as Push to ON or Push to OFF switches respectively. Circuit Diagram Note: VDD and VSS of the pic microcontroller is not shown in the circuit diagram. VDD should be connected to +5V and VSS to GND. Push button switch is connected to the first bit of PORT B (RB7) which is configured as an input pin. Which is connected to a pull up resistor such that this pin is at ground potential when the switch is not pre...