Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/isr.asm @ 390:a847f416e67e 64kByte Logbook
Debugging timer1
author | heinrichsweikamp |
---|---|
date | Sun, 19 Jun 2011 14:20:19 +0200 |
parents | cf1023a53d0c |
children | ee5e1c65657c |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/isr.asm Sun Jun 19 00:07:35 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/isr.asm Sun Jun 19 14:20:19 2011 +0200 @@ -181,13 +181,14 @@ timer1int_debug: bcf LED_red ; LEDr off (For charge indicator) - movlw 0x08 ; Timer1 int after 62.5ms (=16/second) - cpfslt TMR1H ; Did we miss a 1/16 second? - incf timer1int_counter1,F ; Yes, add extra 1/16 second +; movlw 0x08 ; Timer1 int after 62.5ms (=16/second) +; 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 + btfsc TMR1L,0 ; Wait for low clock cycle + bra $-2 + btfss TMR1L,0 + bra $-2 ; max. loop time: 61µs movlw 0x08 ; Timer1 int after 62.5ms (=16/second) subwf TMR1H,F @@ -399,7 +400,7 @@ return clrf hours incf day,F - 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?