comparison code_part1/OSTC_code_asm_part1/isr.asm @ 377:be71e563ac09 64kByte Logbook

First gas can be reset to 0m, test for timer1 race condition
author heinrichsweikamp
date Mon, 13 Jun 2011 07:45:59 +0200
parents 88660a400338
children 51baf8777b73
comparison
equal deleted inserted replaced
376:ed26990716fe 377:be71e563ac09
393 movlw d'23' 393 movlw d'23'
394 cpfsgt hours 394 cpfsgt hours
395 return 395 return
396 clrf hours 396 clrf hours
397 incf day,F 397 incf day,F
398 movff time_correction_value,secs ; Correct too slow clock 398 ; Test for race condition
399 ; movff time_correction_value,secs ; Correct too slow clock
399 400
400 check_date: 401 check_date:
401 movff month,isr_divB ; new month? 402 movff month,isr_divB ; new month?
402 dcfsnz isr_divB,F 403 dcfsnz isr_divB,F
403 movlw .31 404 movlw .31