Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/adc_rtc.asm @ 723:6fd9a9feca91
fix minor issue in rtc_init
author | heinrichsweikamp |
---|---|
date | Mon, 27 May 2013 20:23:25 +0200 |
parents | 4452837aff37 |
children | 71e88ee8bbf2 |
comparison
equal
deleted
inserted
replaced
722:c6d57bed1ba0 | 723:6fd9a9feca91 |
---|---|
220 movlw d'100' ; Limit | 220 movlw d'100' ; Limit |
221 cpfslt year ; Check part | 221 cpfslt year ; Check part |
222 bra RTCinit2 ; Reset time... | 222 bra RTCinit2 ; Reset time... |
223 ; Make sure day and month <> zero | 223 ; Make sure day and month <> zero |
224 movlw .0 | 224 movlw .0 |
225 cpfseq day ; =0? | 225 cpfsgt day ; =0? |
226 incf day,F ; Yes, +1 | 226 incf day,F ; Yes, +1 |
227 cpfseq month ; =0? | 227 cpfsgt month ; =0? |
228 incf month,F ; Yes, +1 | 228 incf month,F ; Yes, +1 |
229 bsf PIE1, TMR1IE ; Enable clock int | 229 bsf PIE1, TMR1IE ; Enable clock int |
230 return | 230 return |
231 | 231 |
232 RTCinit2: | 232 RTCinit2: |