# HG changeset patch # User heinrichsweikamp # Date 1368706569 -7200 # Node ID b7f7184d800d3d0662ef5b8188e75b646ca347eb # Parent 8c293e76a5175db249fdc57c9f27b3a006d96a71 banksafe sensor init diff -r 8c293e76a517 -r b7f7184d800d code_part1/OSTC_code_asm_part1/ms5535.asm --- a/code_part1/OSTC_code_asm_part1/ms5535.asm Thu May 16 13:57:32 2013 +0200 +++ b/code_part1/OSTC_code_asm_part1/ms5535.asm Thu May 16 14:16:09 2013 +0200 @@ -218,6 +218,8 @@ ;============================================================================= get_calibration_data: + banksel flag5 + bsf no_sensor_int ; disable sensor interrupts rcall reset_MS5535A movlw d'13' movwf clock_count diff -r 8c293e76a517 -r b7f7184d800d code_part1/OSTC_code_asm_part1/sleepmode.asm --- a/code_part1/OSTC_code_asm_part1/sleepmode.asm Thu May 16 13:57:32 2013 +0200 +++ b/code_part1/OSTC_code_asm_part1/sleepmode.asm Thu May 16 14:16:09 2013 +0200 @@ -194,8 +194,8 @@ return fatal_error_sleep: - bsf no_sensor_int ; Disable sensor interrupt call get_calibration_data ; Get calibration data from pressure sensor + banksel flag5 bcf no_sensor_int ; Enable sensor interrupt WAITMS d'250' WAITMS d'250' diff -r 8c293e76a517 -r b7f7184d800d code_part1/OSTC_code_asm_part1/start.asm --- a/code_part1/OSTC_code_asm_part1/start.asm Thu May 16 13:57:32 2013 +0200 +++ b/code_part1/OSTC_code_asm_part1/start.asm Thu May 16 14:16:09 2013 +0200 @@ -43,8 +43,8 @@ call RTCinit ; reset RTC ; Air pressure compensation after reset - bsf no_sensor_int ; Disable sensor interrupt call get_calibration_data ; Get calibration data from pressure sensor + banksel flag5 bcf no_sensor_int ; Enable sensor interrupt bcf pressure_refresh wait_start_pressure: