comparison src/calibrate.asm @ 631:185ba2f91f59

3.09 beta 1 release
author heinrichsweikamp
date Fri, 28 Feb 2020 15:45:07 +0100
parents c40025d8e750
children 4050675965ea
comparison
equal deleted inserted replaced
630:4cd81bdbf15c 631:185ba2f91f59
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File calibration.asm combined next generation V3.03.1 3 ; File calibration.asm combined next generation V3.08.8
4 ; 4 ;
5 ; o2 sensor calibration subroutines 5 ; o2 sensor calibration subroutines
6 ; 6 ;
7 ; Copyright (c) 2014, Heinrichs Weikamp, all right reserved. 7 ; Copyright (c) 2014, Heinrichs Weikamp, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
40 40
41 tx_to_HUD: ; entry point to transmit a byte to the HUD 41 tx_to_HUD: ; entry point to transmit a byte to the HUD
42 addwf lo,F ; add byte to checksum 42 addwf lo,F ; add byte to checksum
43 tx_to_HUD_cs: ; entry point to transmit the checksum 43 tx_to_HUD_cs: ; entry point to transmit the checksum
44 movff WREG,TXREG2 ; transmit byte 44 movff WREG,TXREG2 ; transmit byte
45 call rs232_wait_tx2 ; wait for UART 45 call ir_s8_wait_tx ; wait for UART
46 return 46 return
47 47
48 48
49 global calibrate_mix 49 global calibrate_mix
50 calibrate_mix: 50 calibrate_mix:
220 call div32x16 ; xC:4 = xC:4 / xB:2 with xA as remainder 220 call div32x16 ; xC:4 = xC:4 / xB:2 with xA as remainder
221 MOVII xC,sensor3_mv ; in 100 µV steps 221 MOVII xC,sensor3_mv ; in 100 µV steps
222 222
223 return ; done 223 return ; done
224 224
225
226 ENDIF ; _external_sensor 225 ENDIF ; _external_sensor
227 226
228 ;============================================================================= 227 ;=============================================================================
229 228
230 END 229 END