Connect with us

Help my with 8051 assembly program

Discussion in 'Electronics Homework Help' started by Dannie, Apr 15, 2016.

Scroll to continue with content
  1. Dannie

    Dannie

    3
    0
    Apr 15, 2016
    Can you help me to write a program using 8051 assembly program:
    a) make LCD 16 x2 become a digital watch ( xx h xx m xx s).
    b) can adjust time by pressing button.
    c) can set alarm.
    Thank you so much xD
     
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    10,562
    2,354
    Nov 17, 2011
    Is this some kind of homework or assignment?
     
  3. Dannie

    Dannie

    3
    0
    Apr 15, 2016
    yep, can u help me the direction? and I'll code them myself
     
  4. Harald Kapp

    Harald Kapp Moderator Moderator

    10,562
    2,354
    Nov 17, 2011
    1st you'lll need the hardware (µC, clock oszillator LCD, butttons etc.).
    2nd you'lll need a counter for the time which is clocked in 1 second intervalls, e.g. by an interrupt.
    You'll need a register to store the alarm time
    You'll need a display routine to display the time on the LCD. This routine will have to update the display anytime it changes.
    You'll need a routine that reads the button states (don't forget to de-bounce the buttons).
    Depending on the button states (user actions) you'll have to increment or decrement the clock counter to allow setting of the time. Likewise you'll have to increment or decrement the alarm counter.
    Your display routine could display clock and alarm at the same time since you have a 2-row LCD.
     
    Dannie likes this.
  5. Dannie

    Dannie

    3
    0
    Apr 15, 2016
    thank you so much bro xD
     
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

-