comparison 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
comparison
equal deleted inserted replaced
788:9eba1eb8ca38 789:380a07e4fc15
332 332
333 RTCisr: 333 RTCisr:
334 clrf timer1int_counter1 ; counts to 16 (one second / 62.5ms) 334 clrf timer1int_counter1 ; counts to 16 (one second / 62.5ms)
335 bsf onesecupdate ; we have a new second! 335 bsf onesecupdate ; we have a new second!
336 336
337 btfsc sleepmode ; are we in sleep mode?
338 bra RTCisr0 ; Yes
339
340 movlw .1
341 addwf on_time_seconds+0,F
342 movlw .0
343 addwfc on_time_seconds+1,F
344 addwfc on_time_seconds+2,F ; Increase counter
345
346 RTCisr0:
337 bcf STATUS,Z ; are we in dive mode? 347 bcf STATUS,Z ; are we in dive mode?
338 btfss divemode 348 btfss divemode
339 bra RTCisr2 ; No, must be surface or sleepmode 349 bra RTCisr2 ; No, must be surface or sleepmode
340 350
341 incf samplesecs,F ; CF20 diving seconds done 351 incf samplesecs,F ; CF20 diving seconds done