Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/ms5535.asm @ 4:2b5c52ae3923
1.52 beta rc
author | heinrichsweikamp |
---|---|
date | Sun, 14 Feb 2010 20:09:25 +0100 |
parents | 96a35aeda5f2 |
children | 31fa973a70fd |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/ms5535.asm Thu Feb 04 14:56:12 2010 +0100 +++ b/code_part1/OSTC_code_asm_part1/ms5535.asm Sun Feb 14 20:09:25 2010 +0100 @@ -278,19 +278,19 @@ return get_calibration_data: - ; read addional temperature correction from internal EEPROM 0x100 - bsf no_sensor_int ; No sensor interupt! - clrf temperature_correction ; clear compensation value - movlw LOW 0x100 - movwf EEADR - movlw HIGH 0x100 - movwf EEADRH - call read_eeprom - clrf EEADRH ; Only 256Bytes used in normal program - movlw d'200' ; limit value - cpfsgt EEDATA ; EEDATA>200? - movff EEDATA, temperature_correction ; No, Store for compensation - +; ; read addional temperature correction from internal EEPROM 0x100 +; bsf no_sensor_int ; No sensor interupt! +; clrf temperature_correction ; clear compensation value +; movlw LOW 0x100 +; movwf EEADR +; movlw HIGH 0x100 +; movwf EEADRH +; call read_eeprom +; clrf EEADRH ; Only 256Bytes used in normal program +; movlw d'200' ; limit value +; cpfsgt EEDATA ; EEDATA>200? +; movff EEDATA, temperature_correction ; No, Store for compensation +; rcall reset_MS5535A movlw d'13' movwf clock_count