Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/isr.asm @ 789:380a07e4fc15
work on new battery information output
author | heinrichsweikamp |
---|---|
date | Thu, 28 Aug 2014 16:34:55 +0200 |
parents | de413161f00c |
children | c50296c3059e |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/isr.asm Mon Aug 11 12:18:48 2014 +0200 +++ b/code_part1/OSTC_code_asm_part1/isr.asm Thu Aug 28 16:34:55 2014 +0200 @@ -334,6 +334,16 @@ clrf timer1int_counter1 ; counts to 16 (one second / 62.5ms) bsf onesecupdate ; we have a new second! + btfsc sleepmode ; are we in sleep mode? + bra RTCisr0 ; Yes + + movlw .1 + addwf on_time_seconds+0,F + movlw .0 + addwfc on_time_seconds+1,F + addwfc on_time_seconds+2,F ; Increase counter + +RTCisr0: bcf STATUS,Z ; are we in dive mode? btfss divemode bra RTCisr2 ; No, must be surface or sleepmode