comparison src/isr.asm @ 448:aadfe9f2edaf

work on new battery options
author heinrichsweikamp
date Tue, 30 Aug 2016 17:26:21 +0200
parents d3087a8ed7e1
children 66049b6f2c0b
comparison
equal deleted inserted replaced
447:f2a1d535347f 448:aadfe9f2edaf
325 banksel isr_backup 325 banksel isr_backup
326 movf max_CCPR1L,W ; Dimm value 326 movf max_CCPR1L,W ; Dimm value
327 cpfseq CCPR1L ; = current PWM value? 327 cpfseq CCPR1L ; = current PWM value?
328 rcall isr_dimm_tft ; No, adjust until max_CCPR1L=CCPR1L ! 328 rcall isr_dimm_tft ; No, adjust until max_CCPR1L=CCPR1L !
329 329
330 banksel common
331 call get_analog_switches ; Get analog readings
332 btfss INTCON3,INT1IE
333 bra isr_tmr7_a
334 btfsc analog_sw2_pressed
335 rcall isr_switch_left
336 isr_tmr7_a:
337 banksel common
338 btfss INTCON,INT0IE
339 bra isr_tmr7_b
340 btfsc analog_sw1_pressed
341 rcall isr_switch_right
342 isr_tmr7_b:
343
330 banksel isr_backup 344 banksel isr_backup
331 decfsz ir_S8_timeout,F ; IR Data still valid? 345 decfsz ir_S8_timeout,F ; IR Data still valid?
332 bra isr_tmr7_2 ; Yes, continue 346 bra isr_tmr7_2 ; Yes, continue
333 ; timeout, clear IR-Data 347 ; timeout, clear IR-Data
334 348