Mercurial > public > hwos_code
comparison src/comm.asm @ 110:d39493c786a2
BUGFIX: OSTC settings via USB issues
author | heinrichsweikamp |
---|---|
date | Tue, 10 Jun 2014 10:14:18 +0200 |
parents | 53a99a2dc6a1 |
children | f3062a611eef |
comparison
equal
deleted
inserted
replaced
109:1aeb01c0e4ff | 110:d39493c786a2 |
---|---|
920 bra comm_read_date_format ; RCREG1=0x33 | 920 bra comm_read_date_format ; RCREG1=0x33 |
921 dcfsnz WREG | 921 dcfsnz WREG |
922 bra comm_read_compass_gain ; RCREG1=0x34 | 922 bra comm_read_compass_gain ; RCREG1=0x34 |
923 dcfsnz WREG | 923 dcfsnz WREG |
924 bra comm_read_pressure_adjust ; RCREG1=0x35 | 924 bra comm_read_pressure_adjust ; RCREG1=0x35 |
925 dcfsnz WREG | |
926 bra comm_read_safety_stop ; RCREG1=0x36 | |
925 | 927 |
926 | 928 |
927 | 929 |
928 comm_read_unused: | 930 comm_read_unused: |
929 comm_read_abort: | 931 comm_read_abort: |
1146 bra comm_download_mode0 ; Done. Loop with timeout reset | 1148 bra comm_download_mode0 ; Done. Loop with timeout reset |
1147 comm_read_pressure_adjust: | 1149 comm_read_pressure_adjust: |
1148 movff opt_pressure_adjust, TXREG1 | 1150 movff opt_pressure_adjust, TXREG1 |
1149 rcall comm_read_setting_wait ; Wait for UART | 1151 rcall comm_read_setting_wait ; Wait for UART |
1150 bra comm_download_mode0 ; Done. Loop with timeout reset | 1152 bra comm_download_mode0 ; Done. Loop with timeout reset |
1153 comm_read_safety_stop: | |
1154 movff opt_enable_safetystop, TXREG1 | |
1155 rcall comm_read_setting_wait ; Wait for UART | |
1156 bra comm_download_mode0 ; Done. Loop with timeout reset | |
1157 | |
1151 | 1158 |
1152 ;----------------------------------------------------------------------------- | 1159 ;----------------------------------------------------------------------------- |
1153 | 1160 |
1154 | 1161 |
1155 comm_write_setting: | 1162 comm_write_setting: |
1265 bra comm_write_date_format ; RCREG1=0x33 | 1272 bra comm_write_date_format ; RCREG1=0x33 |
1266 dcfsnz WREG | 1273 dcfsnz WREG |
1267 bra comm_write_compass_gain ; RCREG1=0x34 | 1274 bra comm_write_compass_gain ; RCREG1=0x34 |
1268 dcfsnz WREG | 1275 dcfsnz WREG |
1269 bra comm_write_pressure_adjust ; RCREG1=0x35 | 1276 bra comm_write_pressure_adjust ; RCREG1=0x35 |
1277 dcfsnz WREG | |
1278 bra comm_write_safety_stop ; RCREG1=0x36 | |
1270 | 1279 |
1271 comm_write_unused: | 1280 comm_write_unused: |
1272 comm_write_abort: | 1281 comm_write_abort: |
1273 ; Check Options, gases and diluents | 1282 ; Check Options, gases and diluents |
1274 call option_check_all ; Check all options (and reset if not within their min/max boundaries) | 1283 call option_check_all ; Check all options (and reset if not within their min/max boundaries) |
1502 movff RCREG1, opt_compass_gain | 1511 movff RCREG1, opt_compass_gain |
1503 bra comm_write_abort ; Done. Loop with timeout reset | 1512 bra comm_write_abort ; Done. Loop with timeout reset |
1504 comm_write_pressure_adjust: | 1513 comm_write_pressure_adjust: |
1505 call rs232_get_byte | 1514 call rs232_get_byte |
1506 movff RCREG1, opt_pressure_adjust | 1515 movff RCREG1, opt_pressure_adjust |
1516 bra comm_write_abort ; Done. Loop with timeout reset | |
1517 comm_write_safety_stop: | |
1518 call rs232_get_byte | |
1519 movff RCREG1, opt_enable_safetystop | |
1507 bra comm_write_abort ; Done. Loop with timeout reset | 1520 bra comm_write_abort ; Done. Loop with timeout reset |
1508 | 1521 |
1509 ;----------------------------------------------------------------------------- | 1522 ;----------------------------------------------------------------------------- |
1510 | 1523 |
1511 comm_send_string: | 1524 comm_send_string: |