Mercurial > public > hwos_code
comparison src/isr.asm @ 268:29acdb601548
BUGFIX: Increase timing tolerance for S8 HUD (cR only)
author | heinrichsweikamp |
---|---|
date | Sun, 19 Apr 2015 20:41:48 +0200 |
parents | e2ea74646127 |
children | d316d44530a3 |
comparison
equal
deleted
inserted
replaced
267:f64afa14ef07 | 268:29acdb601548 |
---|---|
247 movff ir_s8_buffer+.3,hud_status_byte | 247 movff ir_s8_buffer+.3,hud_status_byte |
248 movff ir_s8_buffer+.13,hud_battery_mv+0 | 248 movff ir_s8_buffer+.13,hud_battery_mv+0 |
249 movff ir_s8_buffer+.14,hud_battery_mv+1 | 249 movff ir_s8_buffer+.14,hud_battery_mv+1 |
250 | 250 |
251 banksel common | 251 banksel common |
252 btfss new_s8_data_available ; =1: Old data already processed? | |
253 bra isr_timer3_skip ; No, skip copying new results | |
254 banksel ir_S8_timeout | |
255 | |
256 movff ir_s8_buffer+.6,s8_rawdata_sensor1+2 | |
257 movff ir_s8_buffer+.5,s8_rawdata_sensor1+1 | |
258 movff ir_s8_buffer+.4,s8_rawdata_sensor1+0 | |
259 movff ir_s8_buffer+.9,s8_rawdata_sensor2+2 | |
260 movff ir_s8_buffer+.8,s8_rawdata_sensor2+1 | |
261 movff ir_s8_buffer+.7,s8_rawdata_sensor2+0 | |
262 movff ir_s8_buffer+.12,s8_rawdata_sensor3+2 | |
263 movff ir_s8_buffer+.11,s8_rawdata_sensor3+1 | |
264 movff ir_s8_buffer+.10,s8_rawdata_sensor3+0 | |
265 banksel common | |
252 bsf new_s8_data_available ; set flag | 266 bsf new_s8_data_available ; set flag |
267 | |
268 isr_timer3_skip: | |
253 banksel ir_S8_timeout | 269 banksel ir_S8_timeout |
254 | |
255 movlw ir_timeout_value ; multiples of 62,5ms | 270 movlw ir_timeout_value ; multiples of 62,5ms |
256 movwf ir_S8_timeout ; Reload timeout | 271 movwf ir_S8_timeout ; Reload timeout |
257 bra isr_timer3_exit ; Exit | 272 bra isr_timer3_exit ; Exit |
258 | 273 |
259 | 274 |
260 ;============================================================================= | 275 ;============================================================================= |
261 | 276 |