comparison src/isr.asm @ 145:e3ac5b2021bc

NEW: Setpoint-Fallback option for external O2 sensor failure
author heinrichsweikamp
date Tue, 05 Aug 2014 16:55:09 +0200
parents f3062a611eef
children fdd4e30846ae
comparison
equal deleted inserted replaced
144:b839972db982 145:e3ac5b2021bc
553 rcall isr_divemode_1sec ; Yes, do some divemode stuff in bank common 553 rcall isr_divemode_1sec ; Yes, do some divemode stuff in bank common
554 554
555 tstfsz secs ; Secs == 0 ? 555 tstfsz secs ; Secs == 0 ?
556 return ; No, Done. 556 return ; No, Done.
557 557
558 ; banksel isr_backup ; Back to Bank0 ISR data
559 ; movff secs,isr1_temp ; Copy to Bank0
560 ; movlw d'0'
561 ; cpfseq isr1_temp ; Secs == 0 ?
562 ; return ; Done.
563
564 ; banksel common ; flag1 is in Bank1
565 bsf oneminupdate ; A new minute has begun 558 bsf oneminupdate ; A new minute has begun
566 559
567 btfss divemode ; In Divemode? 560 btfss divemode ; In Divemode?
568 rcall check_nofly_desat_time ; No, so reduce NoFly and Desat and increase interval 561 rcall check_nofly_desat_time ; No, so reduce NoFly and Desat and increase interval
569 562
570 ; Check if a new hour has just begun 563 ; Check if a new hour has just begun
571 ; banksel common ; flag1 is in Bank1
572 tstfsz mins ; mins=0? 564 tstfsz mins ; mins=0?
573 bra isr_rtcc2 ; No 565 bra isr_rtcc2 ; No
574 bsf onehourupdate ; Yes, set flag 566 bsf onehourupdate ; Yes, set flag
575 567
576 isr_rtcc2: 568 isr_rtcc2: