trying to Make use of the DS1302 as a alarm clock!!
hawkin
Posts: 2
Dear All,
I'm trying to make use of the DS1302 and the serial LCD display to build a alarm clock.
I'm have set up the circurt board with the DS1302 and the serial LCD display
and load up with the DS1302 demo code.
The result is good. but I don't know to make use of the the data to set a alarm value.
pls help!!
Can I have some source code for reference??
I'm using the board of education with BS2 chip
Thanks,
HawKin
I'm trying to make use of the DS1302 and the serial LCD display to build a alarm clock.
I'm have set up the circurt board with the DS1302 and the serial LCD display
and load up with the DS1302 demo code.
The result is good. but I don't know to make use of the the data to set a alarm value.
pls help!!
Can I have some source code for reference??
I'm using the board of education with BS2 chip
Thanks,
HawKin
Comments
IF (hrs = $08) AND (mins = $00) THEN GOSUB Do_something
And then use a flag 0 or 1 to prevent new alarm when returning back from subroutine while clock still is 08:00.