Shop OBEX P1 Docs P2 Docs Learn Events
trying to Make use of the DS1302 as a alarm clock!! — Parallax Forums

trying to Make use of the DS1302 as a alarm clock!!

hawkinhawkin Posts: 2
edited 2012-03-09 19:48 in Learn with BlocklyProp
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

Comments

  • MoskogMoskog Posts: 554
    edited 2012-03-08 01:42
    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.
  • hawkinhawkin Posts: 2
    edited 2012-03-09 19:48
    Thx, Moskog
Sign In or Register to comment.