Skip to content

Developed a Stop Watch system based on ATmega32 microcontroller at 1MHz, Timer1 in CTC mode, and six multiplexed common anode 7-segment displays with a 7447 decoder. Controlled segments using PORTA and PORTC pins. Configured external interrupts to reset, pause, and resume the stopwatch via push buttons.

Notifications You must be signed in to change notification settings

eng-ahmedmostafa/StopWatch-based-on-ATmega32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stop-Watch-using-ATmega32

Designed and implemented a Stop Watch system using an ATmega32 microcontroller operating at 1MHz. Configured Timer1 in CTC mode for precise time counting. Utilized six common anode 7-segment displays connected through multiplexing with a 7447 decoder and controlled via NPN BJT transistors linked to the microcontroller pins. The 7447 decoder was connected to PORTC, while PORTA managed the enable/disable functionality of each 7-segment.

Stopwatch functionalities included:

Counting Start: Automatic start upon power connection to the MCU. Reset: Configured External Interrupt INT0 with a falling edge to reset time, using an internal pull-up resistor push button. Pause: Configured External Interrupt INT1 with a rising edge to pause time, using an external pull-down resistor push button. Resume: Configured External Interrupt INT2 with a falling edge to resume time, using an internal pull-up resistor push button.

image

About

Developed a Stop Watch system based on ATmega32 microcontroller at 1MHz, Timer1 in CTC mode, and six multiplexed common anode 7-segment displays with a 7447 decoder. Controlled segments using PORTA and PORTC pins. Configured external interrupts to reset, pause, and resume the stopwatch via push buttons.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published