Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 714:b7f7184d800d
banksafe sensor init
author | heinrichsweikamp |
---|---|
date | Thu, 16 May 2013 14:16:09 +0200 |
parents | 8c293e76a517 |
children | fac7710ab84e |
comparison
equal
deleted
inserted
replaced
713:8c293e76a517 | 714:b7f7184d800d |
---|---|
192 clrf amb_pressure_avg+1 ; clear for sleep routine | 192 clrf amb_pressure_avg+1 ; clear for sleep routine |
193 call calculate_compensation ; calculate temperature compensated pressure (233us) | 193 call calculate_compensation ; calculate temperature compensated pressure (233us) |
194 return | 194 return |
195 | 195 |
196 fatal_error_sleep: | 196 fatal_error_sleep: |
197 bsf no_sensor_int ; Disable sensor interrupt | |
198 call get_calibration_data ; Get calibration data from pressure sensor | 197 call get_calibration_data ; Get calibration data from pressure sensor |
198 banksel flag5 | |
199 bcf no_sensor_int ; Enable sensor interrupt | 199 bcf no_sensor_int ; Enable sensor interrupt |
200 WAITMS d'250' | 200 WAITMS d'250' |
201 WAITMS d'250' | 201 WAITMS d'250' |
202 call get_battery_voltage ; get battery voltage | 202 call get_battery_voltage ; get battery voltage |
203 btfss enter_error_sleep ; REALLY enter Fatal Error Routine? | 203 btfss enter_error_sleep ; REALLY enter Fatal Error Routine? |