DS1337_1.1 Prop0 Cog6 ok --- Set current-time to 2012/6/1 Saturday 14:48 (24Hour mode) --- 2013 6 1 6 14 48 set_current CurrentTime setting Year: 2013 Date: JUN 1 SAT Time: 14:48:00 Prop0 Cog6 ok --- Set current-time to 12Hour mode --- 1 current set_12/24 CurrentTime setting Year: 2013 Date: JUN 1 SAT Time: PM 02:50:49 Prop0 Cog6 ok --- Set current-time to 24Hour mode --- 0 current set_12/24 CurrentTime setting Year: 2013 Date: JUN 1 SAT Time: 14:52:02 ========================================================================================== Prop0 Cog6 ok --- output 8.192kHz from SQW/INTB-pin (default is 32.768kHz) --- 8kHz set_SQW Prop0 Cog6 ok --- output 4.096kHz from SQW/INTB-pin --- 4kHz set_SQW Prop0 Cog6 ok --- output 1Hz from SQW/INTB-pin --- 1Hz set_SQW Prop0 Cog6 ok --- output 32.768kHz from SQW/INTB-pin --- 32kHz set_SQW Prop0 Cog6 ok ========================================================================================== --- Set Date'2' 15:0 to alarm1 (Set 24Hour mode) --- 2 15 0 set_alm1 Alarm1 setting Date: 2 Time: 15:00:00 Prop0 Cog6 ok --- Set alarm1 to day of week --- 1 alarm1 wr_day_alm Prop0 Cog6 ok --- Re-initialize alarm1 to Saturday 16:00 --- 6 16 0 set_alm1 Alarm1 setting Week: SAT Time: 16:00:00 Prop0 Cog6 ok --- Set alarm1-time to 12Hour mode --- 1 alarm1 set_12/24 Alarm1 setting Week: SAT Time: PM 04:00:00 Prop0 Cog6 ok --- Check alarm1's A1IE control rd_reg hex . decimal 18 Prop0 Cog6 ok --- Enable alarm1's interupt 1 alarm1 alm_Int --- Check alarm1's A1IE control rd_reg hex . decimal 19 Prop0 Cog6 ok --- Re-check current time --- rd_current CurrentTime setting Year: 2013 Date: JUN 1 SAT Time: 15:15:39 Prop0 Cog6 ok --- Re-initialize alarm1 (Set 24Hour mode) --- 6 15 17 set_alm1 Alarm1 setting Week: SAT Time: 15:17:00 Prop0 Cog6 ok ---- When current time match alarm1, INTA-pin is Low. --- ---- Alarm1Flag is setted to 1 ---- status rd_reg hex . decimal 1 Prop0 Cog6 ok ---- Clear Alarm1Flag ---- 0 status wr_reg Prop0 Cog6 ok --- Disable alarm1's interupt 0 alarm1 alm_Int ============================================================================================ --- Set Date'2' 15:0 to alarm1 (Set 24Hour mode) --- 2 15 0 set_alm2 Alarm2 setting Date: 2 Time: 15:00:00 Prop0 Cog6 ok --- Set alarm2 to day of week --- 1 alarm2 wr_day_alm Prop0 Cog6 ok --- Re-initialize alarm2 to Saturday 16:00 --- 6 16 0 set_alm2 Alarm1 setting Week: SAT Time: 16:00:00 Prop0 Cog6 ok --- Set alarm2-time to 12Hour mode --- 1 alarm2 set_12/24 Alarm1 setting Week: SAT Time: PM 04:00 Prop0 Cog6 ok --- Check alarm2's A1IE control rd_reg hex . decimal 18 Prop0 Cog6 ok --- Enable alarm2's interupt 1 alarm2 alm_Int --- Check alarm1's A1IE control rd_reg hex . decimal 1A Prop0 Cog6 ok --- Re-check current time --- rd_current CurrentTime setting Year: 2013 Date: JUN 1 SAT Time: 15:36:22 Prop0 Cog6 ok --- Re-initialize alarm1 (Set 24Hour mode) --- 6 15 38 set_alm2 Alarm1 setting Week: SAT Time: 15:38 Prop0 Cog6 ok ---- When current time match alarm2, INTA-pin is Low. --- ---- Alarm2Flag is setted to 1 ---- status rd_reg hex . decimal 2 Prop0 Cog6 ok ---- Clear Alarm1Flag ---- 0 status wr_reg Prop0 Cog6 ok --- Set INTCN --- 1 set_INTCN Prop0 Cog6 ok --- Re-check current time --- rd_current CurrentTime setting Year: 2013 Date: JUN 1 SAT Time: 15:40:59 Prop0 Cog6 ok --- Set alarm2 to Sat 15:42 --- 6 15 42 set_alm2 Alarm2 setting Week: SAT Time: 15:42 ---- When current time match alarm2, SQW/INTB-pin is Low. --- ---- Alarm2Flag is setted to 1 ---- status rd_reg hex . decimal 2 Prop0 Cog6 ok ---- Clear Alarm1Flag ---- 0 status wr_reg Prop0 Cog6 ok --- Clear INTCN --- 0 set_INTCN --- Disable alarm1's interupt 0 alarm2 alm_Int =========================================================================== --- When using external clock, DS1337's clock must stop --- 0 osc_on/off --- Re-start DS1337's clock (using 32.768Xtal) --- 1 osc_on/off