View Full Version : trying to Make use of the DS1302 as a alarm clock!!

03-08-2012, 08:33 AM
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



03-08-2012, 09:42 AM
What about

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.

03-10-2012, 03:48 AM
Thx, Moskog