comparison src/isr.asm @ 621:1ad0531e9078

3.01 release
author heinrichsweikamp
date Sat, 23 Feb 2019 16:51:14 +0100
parents d866684249bd
children c40025d8e750
comparison
equal deleted inserted replaced
620:cd986267a5ca 621:1ad0531e9078
473 banksel isr_backup ; back to bank 0 ISR data 473 banksel isr_backup ; back to bank 0 ISR data
474 isr_sensor_state2_3: 474 isr_sensor_state2_3:
475 movff temperature+0,last_temperature+0 ; copy for compare 475 movff temperature+0,last_temperature+0 ; copy for compare
476 movff temperature+1,last_temperature+1 476 movff temperature+1,last_temperature+1
477 477
478 movf amb_pressure+0,W 478 ; movf amb_pressure+0,W
479 cpfseq last_pressure+0 479 ; cpfseq last_pressure+0
480 bra isr_sensor_state2_4 ; YES 480 ; bra isr_sensor_state2_4 ; YES
481 movf amb_pressure+1,W 481 ; movf amb_pressure+1,W
482 cpfseq last_pressure+1 482 ; cpfseq last_pressure+1
483 bra isr_sensor_state2_4 ; YES 483 ; bra isr_sensor_state2_4 ; YES
484 484 ;
485 bra isr_sensor_state2_5 ; no change 485 ; bra isr_sensor_state2_5 ; no change
486 isr_sensor_state2_4: 486 ;isr_sensor_state2_4:
487 banksel common ; flag1 is in bank 1 487 banksel common ; flag1 is in bank 1
488 bsf pressure_refresh ; YES 488 bsf pressure_refresh ; Always set this flag
489 banksel isr_backup ; back to bank 0 ISR data 489 banksel isr_backup ; back to bank 0 ISR data
490 isr_sensor_state2_5: 490 ;isr_sensor_state2_5:
491 movff amb_pressure+0,last_pressure+0 ; copy for compare 491 ; movff amb_pressure+0,last_pressure+0 ; copy for compare
492 movff amb_pressure+1,last_pressure+1 492 ; movff amb_pressure+1,last_pressure+1
493 493
494 clrf sensor_state_counter ; reset state counter 494 clrf sensor_state_counter ; reset state counter
495 banksel common ; flag2 is in bank 1 495 banksel common ; flag2 is in bank 1
496 btfss simulatormode_active ; are we in simulator mode? 496 btfss simulatormode_active ; are we in simulator mode?
497 bra comp_air_pressure ; NO 497 bra comp_air_pressure ; NO