GithubHelp home page GithubHelp logo

khaledsamymohamed / stop_watch Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 55 KB

Design a Stop Watch system using ATmega32 Microcontroller (1MHz) with Timer1 in CTC mode for time counting. Utilize six Common Anode 7-segments through multiplexing with a 7447 decoder and NPN BJT transistors. Implement start, pause, and resume functions using External Interrupts (INT0, INT1, INT2) triggered by push buttons.

C 100.00%

stop_watch's Introduction

Stop Watch System

Overview

This project implements a Stop Watch system using the ATmega32 Microcontroller with a 1MHz frequency. It utilizes Timer1 in CTC mode for precise time counting and features a display system using six Common Anode 7-segments through multiplexing with a 7447 decoder and NPN BJT transistors.

Hardware Setup

  • Connect the 7447 decoder to the first 4 pins in PORTC.
  • Use the first 6 pins in PORTA as enable/disable pins for the six 7-segments.
  • Implement multiplexing technique for displaying time on the 7-segment displays.

Stopwatch Controls

  • Start the stopwatch automatically upon connecting power to the MCU.
  • Connect a push button with an internal pull-up resistor to trigger External Interrupt INT0 (falling edge) for resetting the stopwatch.
  • Connect a push button with an external pull-down resistor to trigger External Interrupt INT1 (rising edge) for pausing the stopwatch.
  • Connect a push button with an internal pull-up resistor to trigger External Interrupt INT2 (falling edge) for resuming the stopwatch.

Timer Configuration

Configure Timer1 in CTC mode for accurate timekeeping.

Notes

  • The project is designed for the ATmega32 Microcontroller with a 1MHz frequency.
  • Utilize the provided circuit diagram for proper connection of 7-segments and control elements.

stop_watch's People

Contributors

khaledsamymohamed 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.