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 ...
WPLSoft Instruction. सबसे पहला इंस्ट्रक्शन आता है LD means Load a Contact. ----] [---- ये इसका symbol है इस इंस्ट्रक्शन का उसे पीएलसी के किसी भी इनपुट को veryfy करने के लिए किया जाता है एक तरह से कह सकते है की यह ladder diagrame में इनपुट की तरह काम करता है पीएलसी के इनपुट एड्रेस को इसी पर दिया जाता है यह NO एलिमेंट की तरह काम करता है. 2:- LDI means NC element ये एक NC एलिमेंट की तरह होता है बाकी सं LD इंस्ट्रक्शन की तरह ही काम करता है. 3:-TMR मीन्स टाइमर. यह पीएलसी का टाइमर होता है यह दो टाइप्स का होता है एक On delay एंड Of Delay. ज्यादातर on delay का ही use किया जाता है ऑफ डिले का use जरूरत पड़ने पर किया जाता है TMR में दो सेट पॉइंट होते है एक S1 और दूसरा S2, S1 का मतलब होता है timer का no मतलब कोनसा timer है और S2 का मतलब होता है Delay time in second या mili second जैसे ही हैम timer के input को on करते है timer अपना time vallue या set vallue counting सुरु कर देता है और जैसे ही उसका टाइम पूरा होता है वो एक output भेज देता है वो आउटपुट T0 या जो भी Timer का no है उसके साथ T लगाकर एक NO ...