DS1337_1.2.f Prop0 Cog6 ok --- Set current to 2013/6/5 Wed 20:44:00 2013 6 5 3 20 44 set_current CurrentTime Year: 2013 Date: JUN 5 WED Time: 20:44:00 Prop0 Cog6 ok --- Set alarm1 to [Date]4 21:00:00 5 21 0 set_alm1 Alarm1 setting Date: 5 Time: 21:00:00 Alarm1 Interupt:Enabled Alarm2 Interupt:Disabled Prop0 Cog6 ok --- Set alarm2 to [Date]2 21:05:00 3 21 5 set_alm2 Alarm2 setting Date: 3 Time: 21:05 Alarm1 Interupt:Enabled Alarm2 Interupt:Enabled Prop0 Cog6 ok --- Check alarm1/alarm2 flag chk_INT Alarm1 Flag:0 Alarm2 Flag:0 Prop0 Cog6 ok --- Display all setting all CurrentTime Year: 2013 Date: JUN 5 WED Time: 20:50:11 Alarm1 setting Date: 5 Time: 21:00:00 Alarm2 setting Date: 3 Time: 21:05 Prop0 Cog6 ok --- Change alarm2 to week of day 1 alarm2 alm_Day Prop0 Cog6 ok --- Display all setting all CurrentTime Year: 2013 Date: JUN 5 WED Time: 20:51:49 Alarm1 setting Date: 5 Time: 21:00:00 Alarm2 setting Week: WED Time: 21:05 Prop0 Cog6 ok ============= INTA-pin goes to Low at 21:00 6/5 WED --- Check alarm1/alarm2 flag chk_INT Alarm1 Flag:1 Alarm2 Flag:0 Prop0 Cog6 ok --- Clear INT-flag for alarm1 alarm1 clr_INT Alarm1 Flag:0 Alarm2 Flag:0 Prop0 Cog6 ok ============= INTA-pin goes to Hi ============= INTA-pin goes to Low at 21:05 6/4 WED --- Check alarm1/alarm2 flag chk_INT Alarm1 Flag:0 Alarm2 Flag:1 Prop0 Cog6 ok --- Clear INT-flag for alarm1 alarm2 clr_INT Alarm1 Flag:0 Alarm2 Flag:0 Prop0 Cog6 ok ============= INTA-pin goes to Hi --- Set INTCN 1 set_INTCN Prop0 Cog6 ok --- Set alarm2 to Sunday 21:20:00 7 21 10 set_alm2 Alarm2 setting Week: SUN Time: 21:10 Alarm1 Interupt:Enabled Alarm2 Interupt:Enabled Prop0 Cog6 ok --- Set alarm2 to [No Day/Date] 1 alarm2 no_DY/DT Prop0 Cog6 ok --- Display all setting all CurrentTime Year: 2013 Date: JUN 5 WED Time: 21:08:09 Alarm1 setting Date: 5 Time: 21:00:00 Alarm2 setting Time: 21:10 Prop0 Cog6 ok ============= SQW/INTB-pin goes to Low at 21:10 --- Check alarm1/alarm2 flag chk_INT Alarm1 Flag:0 Alarm2 Flag:1 Prop0 Cog6 ok --- Clear INT-flag for alarm1 alarm2 clr_INT Alarm1 Flag:0 Alarm2 Flag:0 Prop0 Cog6 ok --- Back alarm2 to [Day/Date] 0 alarm2 no_DY/DT Prop0 Cog6 ok all CurrentTime Year: 2013 Date: JUN 5 WED Time: 21:11:42 Alarm1 setting Date: 5 Time: 21:00:00 Alarm2 setting Week: SUN Time: 21:10 Prop0 Cog6 ok --- Set current/alarm1/alarm2 to 12Hour-mode 1 set_12H CurrentTime Year: 2013 Date: JUN 5 WED Time: PM 09:15:42 Alarm1 setting Date: 5 Time: PM 09:00:00 Alarm2 setting Week: SUN Time: PM 09:10 Prop0 Cog6 ok --- Set alarm1 to [Date]5 21:20:00 5 21 20 set_alm1 Alarm1 setting Date: 5 Time: PM 09:20:00 Alarm1 Interupt:Enabled Alarm2 Interupt:Enabled Prop0 Cog6 ok --- Display all setting all CurrentTime Year: 2013 Date: JUN 5 WED Time: PM 09:19:47 Alarm1 setting Date: 5 Time: PM 09:20:00 Alarm2 setting Week: SUN Time: PM 09:10 Prop0 Cog6 ok ============= INTA-pin goes to Low at 21:20 --- Check alarm1/alarm2 flag chk_INT Alarm1 Flag:1 Alarm2 Flag:0 Prop0 Cog6 ok --- Clear INT-flag for alarm1 alarm1 clr_INT Alarm1 Flag:0 Alarm2 Flag:0 Prop0 Cog6 ok ============= INTA-pin goes to Hi ========================================================================================== --- Check INTCN control rd_reg hex . decimal 1F Prop0 Cog6 ok --- Clear INTCN 0 set_INTCN Prop0 Cog6 ok control rd_reg hex . decimal 1B Prop0 Cog6 ok 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 ========================================================================================== --- When using external Xtal, DS1337's clock stop --- 0 osc_on/off --- Re-start DS1337's clock --- 1 osc_on/off