comparison src/comm.asm @ 507:4e6f5c36f4cc

NEW: Two ppO2 max settings. One for travel/bottom and one for deco gases
author heinrichsweikamp
date Tue, 27 Jun 2017 13:50:42 +0200
parents afa7b66a6a84
children f9cc49750736
comparison
equal deleted inserted replaced
506:b9f06f1a1f74 507:4e6f5c36f4cc
1064 movff button_polarity, TXREG1 ; RCREG1=0x49 1064 movff button_polarity, TXREG1 ; RCREG1=0x49
1065 dcfsnz WREG 1065 dcfsnz WREG
1066 movff opt_PSCR_drop, TXREG1 ; RCREG1=0x4A 1066 movff opt_PSCR_drop, TXREG1 ; RCREG1=0x4A
1067 dcfsnz WREG 1067 dcfsnz WREG
1068 movff opt_PSCR_lungratio, TXREG1 ; RCREG1=0x4B 1068 movff opt_PSCR_lungratio, TXREG1 ; RCREG1=0x4B
1069 dcfsnz WREG
1070 movff opt_ppO2_max_deco, TXREG1 ; RCREG1=0x4C
1071
1069 1072
1070 1073
1071 comm_read_abort: 1074 comm_read_abort:
1072 comm_read_done: 1075 comm_read_done:
1073 bra comm_download_mode0 ; Done. Loop with timeout reset 1076 bra comm_download_mode0 ; Done. Loop with timeout reset
1373 bra comm_write_button_polarity ; RCREG1=0x49 1376 bra comm_write_button_polarity ; RCREG1=0x49
1374 dcfsnz WREG 1377 dcfsnz WREG
1375 movff RCREG1, opt_PSCR_drop ; RCREG1=0x4A 1378 movff RCREG1, opt_PSCR_drop ; RCREG1=0x4A
1376 dcfsnz WREG 1379 dcfsnz WREG
1377 movff RCREG1, opt_PSCR_lungratio ; RCREG1=0x4B 1380 movff RCREG1, opt_PSCR_lungratio ; RCREG1=0x4B
1381 dcfsnz WREG
1382 movff RCREG1, opt_ppO2_max_deco ; RCREG1=0x4C
1378 1383
1379 1384
1380 comm_write_abort: 1385 comm_write_abort:
1381 ; Check Options, gases and diluents 1386 ; Check Options, gases and diluents
1382 call option_check_all ; Check all options (and reset if not within their min/max boundaries) 1387 call option_check_all ; Check all options (and reset if not within their min/max boundaries)