Maker Pro
Maker Pro

Help my with 8051 assembly program

Dannie

Apr 15, 2016
3
Joined
Apr 15, 2016
Messages
3
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
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
Is this some kind of homework or assignment?
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
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

Apr 15, 2016
3
Joined
Apr 15, 2016
Messages
3
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.
thank you so much bro xD
 
Top