EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
You are here: Home / Replies / I studied your problems and

I studied your problems and

|

Microcontroller › 8051 › Stopwatch using 8051 microcontroller (AT89C51) › I studied your problems and

March 2, 2011 at 11:02 am #5651
Anonymous
Guest

I studied your problems and concluded that…… 

the problems you are facing are not due to controller you are using but due to polling used in the code, the timedelay used are not exactly of one sec.


when you press the start and stop button…. the time jumps an extra second on the LED display because there in no interrupt used so condition to stop is checked every after one second eg if at time 1.2 sec you press the stop button it will complete 2 sec and then display the time.


 Instead of again and again switching the power supply on and off numerous times before you sucessfully get “000” diplayed on led you can use reset to reset the controller through 9th pin of  controller(make it high to reset).

 

you can configure timer to get excat time for your stopwatch. through u will even get precise time in msec.

you can interface your circuit to computer by serial port or usb, but serial port is preferred as it is easy to configure and use.

you can connect two controller directly connecting the ports and connecting start pin of both controller to one switch you can have one switch for start

use interrupt pin for start and stop button.

 

links for timer:- 

http://www.engineersgarage.com/tutorials/timers-8051-timer-programming-tutorial

 

http://www.engineersgarage.com/microcontroller/8051projects/countdown-timer-using-AT89C51-circuit

 

link for serial port:-

http://www.engineersgarage.com/microcontroller/8051projects/interface-serialport-RS232-AT89C51-circuit 

RSS Recent Posts

  • How to power up two stereo audio amplifiers from a single source of power supply August 12, 2022
  • Nokia 5110 HW in Oshonsoft August 12, 2022
  • Drill speed controller fault August 12, 2022
  • Charging shutdown circuit question. August 12, 2022
  • My NE555 chips gone bad August 12, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools