Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/isr.asm @ 378:51baf8777b73 64kByte Logbook
testing, removing unused stuff
author | heinrichsweikamp |
---|---|
date | Mon, 13 Jun 2011 11:29:37 +0200 |
parents | be71e563ac09 |
children | cf1023a53d0c |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/isr.asm Mon Jun 13 07:45:59 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/isr.asm Mon Jun 13 11:29:37 2011 +0200 @@ -185,6 +185,10 @@ 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 0x08 ; Timer1 int after 62.5ms (=16/second) subwf TMR1H,F @@ -395,7 +399,7 @@ return clrf hours incf day,F -; Test for race condition +; test for race condition ; movff time_correction_value,secs ; Correct too slow clock check_date: