comparison code_part1/OSTC_code_asm_part1/isr.asm @ 356:9ef9b681f38f

BUGFIX time_correction_value (CF48) > 60 or < 0.
author JeanDo
date Tue, 07 Jun 2011 04:05:49 +0200
parents ba0f30f3d560
children 91352bb698cf
comparison
equal deleted inserted replaced
355:f49d6f0fc870 356:9ef9b681f38f
372 372
373 incf apnoe_mins,F ; increase descent mins 373 incf apnoe_mins,F ; increase descent mins
374 ; Now, do the RTC routine.... 374 ; Now, do the RTC routine....
375 RTCisr2: 375 RTCisr2:
376 incf secs,F ; adjusts seconds, minutes, hours, day, month and year. Checks for a leap year and works until 2099! 376 incf secs,F ; adjusts seconds, minutes, hours, day, month and year. Checks for a leap year and works until 2099!
377 movlw d'59' 377 movlw d'60'
378 cpfsgt secs 378 cpfseq secs
379 return 379 bra secs_60
380 return
381 secs_60:
380 clrf secs 382 clrf secs
381 bsf oneminupdate 383 bsf oneminupdate
382 incf mins,F 384 incf mins,F
383 movlw d'59' 385 movlw d'59'
384 cpfsgt mins 386 cpfsgt mins