comparison code_part1/OSTC_code_asm_part1/isr.asm @ 359:91352bb698cf

Oups... time to sleep !
author JeanDo
date Tue, 07 Jun 2011 19:10:49 +0200
parents 9ef9b681f38f
children 88660a400338
comparison
equal deleted inserted replaced
358:b41f615d4219 359:91352bb698cf
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'60' 377 movlw d'60'
378 cpfseq secs 378 cpfseq secs ; Secs == 60 ?
379 bra secs_60 379 return ; NO : done.
380 return 380 clrf secs ; YES: increment minutes instead...
381 secs_60:
382 clrf secs
383 bsf oneminupdate 381 bsf oneminupdate
384 incf mins,F 382 incf mins,F
385 movlw d'59' 383 movlw d'59'
386 cpfsgt mins 384 cpfsgt mins
387 return 385 return