comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 703:39e02673db4c

some cleanup
author heinrichsweikamp
date Sun, 17 Mar 2013 13:33:17 +0100
parents 6e456a6398e0
children 8c293e76a517
comparison
equal deleted inserted replaced
702:e6ff73e88e45 703:39e02673db4c
184 nop 184 nop
185 sleep 185 sleep
186 nop 186 nop
187 sleep ; Wait at least 35ms (every 16.5ms Timer1 wakeup) 187 sleep ; Wait at least 35ms (every 16.5ms Timer1 wakeup)
188 call get_pressure_value ; State2: Get pressure (51us) 188 call get_pressure_value ; State2: Get pressure (51us)
189 clrf temperature_avg+0
190 clrf temperature_avg+1
189 clrf amb_pressure_avg+0 191 clrf amb_pressure_avg+0
190 clrf amb_pressure_avg+1 ; clear for sleep routine 192 clrf amb_pressure_avg+1 ; clear for sleep routine
191 call calculate_compensation ; calculate temperature compensated pressure (233us) 193 call calculate_compensation ; calculate temperature compensated pressure (233us)
192 return 194 return
193 195