# HG changeset patch # User heinrichsweikamp # Date 1308072309 -7200 # Node ID cf1023a53d0c984ffbbe9d49e07a5908d635ba5d # Parent 51baf8777b7354cf3419c78482d8f6c795734b1c clean up diff -r 51baf8777b73 -r cf1023a53d0c code_part1/OSTC_code_asm_part1/isr.asm --- a/code_part1/OSTC_code_asm_part1/isr.asm Mon Jun 13 11:29:37 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/isr.asm Tue Jun 14 19:25:09 2011 +0200 @@ -185,9 +185,9 @@ cpfslt TMR1H ; Did we miss a 1/16 second? incf timer1int_counter1,F ; Yes, add extra 1/16 second - movlw 0x10 ; Timer1 int after 62.5ms (=16/second) - cpfslt TMR1H ; Did we miss another 1/16 second? - incf timer1int_counter1,F ; Yes, add another extra 1/16 second +; movlw 0x10 ; Timer1 int after 62.5ms (=16/second) +; cpfslt TMR1H ; Did we miss another 1/16 second? +; incf timer1int_counter1,F ; Yes, add another extra 1/16 second movlw 0x08 ; Timer1 int after 62.5ms (=16/second) subwf TMR1H,F @@ -399,8 +399,7 @@ return clrf hours incf day,F -; test for race condition -; movff time_correction_value,secs ; Correct too slow clock + movff time_correction_value,secs ; Correct too slow clock check_date: movff month,isr_divB ; new month?