Giter VIP home page Giter VIP logo

digital-counter's Introduction

Digital Counter

Digital counters are the devices that perform counting operations i.e., incrementing or decrementing the values of an operator, with respect to its previous state value. The counter cycles through the same sequence of numbers continuously so long as there is an incoming clock pulse. There exists several types of counters such as, synchronous counter, asynchronous counter, decade counter, binary counter, ring counter, johnson counter, up/down counter etc.

Design

The digital counter circuit has been designed in Proteus. The circuit schematic is shown in Figure 1. In order to produce a stable output, the microcontroller is triggered with a stable clock input using a crystal oscillator and two capacitors. This provides the basic timing and control for a microcontroller and its peripherals. Both the oscillator and microcontroller operate at 20 MHz.
A 4-digit common cathode type seven-segment display is used to display the decimal count. As seen in the schematic, PORT B and PORT D of the microcontroller are used to configure the display. In order to give user the freedom to control the counter, two push-button switches are connected to PORT C for incrementing and decrementing the count. Another switch is connected to MCLR pin of the microcontroller to reset the counter.

circuit diagram
Figure 1: Digital Counter Circuit Schematic

Simulation Results

1. Up Counter

up counter
Figure 2: When increment switch is pressed (up counter)

2. Down Counter

down counter
Figure 3: When decrement switch is pressed (down counter)

3. Reset

down counter
Figure 4: When reset switch is pressed

digital-counter's People

Contributors

rymshasaeed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.