Connect with us

5 digit Stop watch using 8051 and 16 X 1 / 8 X 1 LCD

Discussion in 'Electronic Design' started by devang, Jul 31, 2007.

Scroll to continue with content
  1. devang

    devang Guest

    Dear All,

    I am trying to build a stop watch using atmel 8051 series controller,
    It should be capable to display 10,000 hours or more.

    Can anybody help me? please!!!!!!!!!!!
    If possible anybody can suggest two digit stop watch also, I would
    love suggestions from you all.


    Thanks & Regards,
    Devang Tanna
     
  2. When is your project assignment due?

    Here is how you do it:
    1) Connect LCD to 8051
    2) Connect switches to 8051
    3) Connect crystal to 8051
    4) Write some software for 8051

    Bingo, you have an 8051 stopwatch.
    Easy.

    There is of course the option of finding the nerdyist looking kid in
    the class and simply paying him to do it for you.

    Dave.
     
  3. MooseFET

    MooseFET Guest

    You missed:

    5) Connect a 5V power supply to the 8051.

    This was a major oversight on your part. Also we realy should give
    some hints about the software. You only really need two instructions
    the DJNZ and the MOV all the others although handy aren't truely
    needed for this sort of task.
     
  4. Gary Tait

    Gary Tait Guest

    Get a serial or paralell LCD interface, unless you are using a version of
    the micro with an adequate built in raw LCD interface.

    The software is easy, just timing loops timed from a 32768 hz watch
    oscillator, or better.
     
  5. Eeyore

    Eeyore Guest

    Philips have some nice 8051 derivatives with LCD interface on chip.

    Graham
     
  6. Rich Grise

    Rich Grise Guest

    How hard is a 60KHz WWBV calibrator? ;-)

    Cheers!
    Rich
     
  7. Rich Grise

    Rich Grise Guest

    WWVB in India?

    Duh.

    Never mind. (albeit WWV does transmit on 2.5, 5, 10, 15, and 20 MHz.)

    Rich
     
  8. Hey, give him a break. He's in Gujarat India, so all the nerdy kids
    are busy 24/7 working on firmware for foreign firms.


    Best regards,
    Spehro Pefhany
     
  9. Can you rx that in india? I'd use a 1PPS from a GPS


    Martin
     
  10. mpm

    mpm Guest

    Depending on how accurate you need the clock, you can take any 8051
    and write a software timing loop. Like this: (Assuming 11.0592 MHz
    xtal and non-accelerated type 8051 or derivative.) Accuracy will
    depend on crystal, and your software. Also temperature, etc...

    ONE_SEC: ;ONE SECOND DELAY - 925183 CLOCKS / 1.0038880 SEC.

    MOV VAR3,#08D
    MOV VAR2,#08D
    MOV VAR1,#236D
    SECLOOP:
    DJNZ VAR1,SECLOOP
    DJNZ VAR2,SECLOOP
    DJNZ VAR3,SECLOOP
    RET

    Next option: (Generally more accurate, with less to screw up.)
    Connect a real-time clock (such as the Dallas Semiconductor DS1307, or
    equiv).
    Use the RTC to keep track of the time, and the 8051 to handle the LCD.

    Next option: (If money is no option)
    Use an "all-in-one", like the Dallas Semi DS87C530, which is an 8051
    with a built in clock.
    But this only comes in weird packages and is rather expensive.

    Also, in my experience, serial LCD's are more $$ than parallel.
    It is not difficult to code a parallel LCD, so save your money.
    You will almost certainly have enough port pins available to drive it.

    Good luck.
    -mpm
     
  11. We can't give the OP all the info now can we? :->

    Dave.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

β€œβ€

-