comparison src/start.asm @ 10:55dfc8f6093f

sensor status on power-on reset
author heinrichsweikamp
date Thu, 16 May 2013 14:48:32 +0200
parents 11d4fc797f74
children 7b06f20881be
comparison
equal deleted inserted replaced
9:150d07db6048 10:55dfc8f6093f
57 ; Air pressure compensation after reset 57 ; Air pressure compensation after reset
58 call get_calibration_data ; Get calibration data from pressure sensor 58 call get_calibration_data ; Get calibration data from pressure sensor
59 banksel common ; get_calibration_data uses isr_backup 59 banksel common ; get_calibration_data uses isr_backup
60 bcf no_sensor_int ; normal sensor interrupt mode 60 bcf no_sensor_int ; normal sensor interrupt mode
61 61
62 call TFT_DisplayOff ; display off
63 bsf LEDr ; Status LED
62 bcf pressure_refresh 64 bcf pressure_refresh
63 ; First pass will not have valid temperature! 65 ; First pass will not have valid temperature!
64 btfss pressure_refresh ; Air pressure compensation 66 btfss pressure_refresh ; Air pressure compensation
65 bra $-2 67 bra $-2
66 ; Second pass 68 ; Second pass
67 bcf pressure_refresh 69 bcf pressure_refresh
68 btfss pressure_refresh ; Air pressure compensation 70 btfss pressure_refresh ; Air pressure compensation
69 bra $-2 71 bra $-2
72 bcf LEDr
70 73
71 clrf rel_pressure+0 74 clrf rel_pressure+0
72 clrf rel_pressure+1 75 clrf rel_pressure+1
73 clrf surface_interval+0 76 clrf surface_interval+0
74 clrf surface_interval+1 77 clrf surface_interval+1