Mercurial > public > mk2
changeset 714:b7f7184d800d
banksafe sensor init
author | heinrichsweikamp |
---|---|
date | Thu, 16 May 2013 14:16:09 +0200 |
parents | 8c293e76a517 |
children | de413161f00c |
files | code_part1/OSTC_code_asm_part1/ms5535.asm code_part1/OSTC_code_asm_part1/sleepmode.asm code_part1/OSTC_code_asm_part1/start.asm |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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'
--- 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: