comparison code_part1/OSTC_code_asm_part1/isr.asm @ 398:ab962c4b19d6

Fixing issue 50, correct "Bar" to "bar" in texts and comments
author heinrichsweikamp
date Sun, 26 Jun 2011 12:24:54 +0200
parents 8e272339fb68
children e565392e0fcc
comparison
equal deleted inserted replaced
396:0386c7e1374a 398:ab962c4b19d6
23 ; ToDo: 23 ; ToDo:
24 24
25 ; the timer1 module interrupts every 62.5ms (16x/second) 25 ; the timer1 module interrupts every 62.5ms (16x/second)
26 ; temperature and pressure is averaged over 4 measurements 26 ; temperature and pressure is averaged over 4 measurements
27 ; flag pressure_refresh is set every 500ms 27 ; flag pressure_refresh is set every 500ms
28 ; and provides accurate pressure (+/-1mBar stable) and temperature (0.1C stable) 28 ; and provides accurate pressure (+/-1mbar stable) and temperature (0.1C stable)
29 29
30 ;============================================================================= 30 ;=============================================================================
31 ; Copy a 16bit value from ISR modified registers to main registers. 31 ; Copy a 16bit value from ISR modified registers to main registers.
32 ; 32 ;
33 ; Because the ISR can happend at any time, the read should be redone if bytes 33 ; Because the ISR can happend at any time, the read should be redone if bytes
287 287
288 btfss simulatormode_active ; are we in simulator mode? 288 btfss simulatormode_active ; are we in simulator mode?
289 bra comp_air_pressure ; no 289 bra comp_air_pressure ; no
290 290
291 comp_air_pressure0: 291 comp_air_pressure0:
292 movlw LOW d'1000' ; yes, so simulate 1Bar surface pressure 292 movlw LOW d'1000' ; yes, so simulate 1bar surface pressure
293 movwf last_surfpressure+0 293 movwf last_surfpressure+0
294 movlw HIGH d'1000' 294 movlw HIGH d'1000'
295 movwf last_surfpressure+1 295 movwf last_surfpressure+1
296 296
297 comp_air_pressure: 297 comp_air_pressure: