PIC16F877 up down counter code + Proteus simulation This PIC16F877 microcontroller tutorial answers the question, " How to implement a up down counter using PIC16F877 ? " Using PIC16 simulator (Proteus) you can verify this counter code and change it according to your needs. Using one push button (Labeled as Count, as shown in figure below) you can increment (When SW1 switch is towards up position) or decrement (When SW1 switch is towards down position) count value (displayed on LCD) as you desire. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. In this article, it is assumed that you know, how to interface LCD with PIC16F877 microcontroller. If you don't then please read this page /pic16f877-lcd-interfacing-code-in-8bit.html] . The following diagram (made in Proteus) shows the PIC microcontroller circuit diagram. Figure 1. PIC16F877 ...
Everything About Industrial Automation