Mercurial > public > hwos_code
diff src/calibrate.asm @ 187:669b5d00706d
CHANGE: Longer timeout (4 min) for calibration menu
Ignore 1,2mV noise for not-connected inputs
author | heinrichsweikamp |
---|---|
date | Sat, 25 Oct 2014 15:28:18 +0200 |
parents | fdd4e30846ae |
children | e79bc535ef9e |
line wrap: on
line diff
--- a/src/calibrate.asm Wed Oct 22 18:09:01 2014 +0200 +++ b/src/calibrate.asm Sat Oct 25 15:28:18 2014 +0200 @@ -342,9 +342,9 @@ #DEFINE ad2mv_factor .410 ; Sensor 1 clrf xC+3 - movff ir_buffer+.6,xC+2 - movff ir_buffer+.5,xC+1 - movff ir_buffer+.4,xC+0 + movff ir_s8_buffer+.6,xC+2 + movff ir_s8_buffer+.5,xC+1 + movff ir_s8_buffer+.4,xC+0 movlw LOW ad2mv_factor movwf xB+0 movlw HIGH ad2mv_factor @@ -354,9 +354,9 @@ movff xC+0,o2_mv_sensor1+0 ; in 100uV steps ; Sensor 2 clrf xC+3 - movff ir_buffer+.9,xC+2 - movff ir_buffer+.8,xC+1 - movff ir_buffer+.7,xC+0 + movff ir_s8_buffer+.9,xC+2 + movff ir_s8_buffer+.8,xC+1 + movff ir_s8_buffer+.7,xC+0 movlw LOW ad2mv_factor movwf xB+0 movlw HIGH ad2mv_factor @@ -366,9 +366,9 @@ movff xC+0,o2_mv_sensor2+0 ; in 100uV steps ; Sensor 3 clrf xC+3 - movff ir_buffer+.12,xC+2 - movff ir_buffer+.11,xC+1 - movff ir_buffer+.10,xC+0 + movff ir_s8_buffer+.12,xC+2 + movff ir_s8_buffer+.11,xC+1 + movff ir_s8_buffer+.10,xC+0 movlw LOW ad2mv_factor movwf xB+0 movlw HIGH ad2mv_factor