comparison code_part1/OSTC_code_asm_part1/adc_rtc.asm @ 537:3091628b2742

BUGFIX: Spurious logbook read issue
author heinrichsweikamp
date Sun, 08 Jan 2012 12:44:51 +0100
parents ab962c4b19d6
children d14f72af4c07
comparison
equal deleted inserted replaced
536:e77df4e2d025 537:3091628b2742
202 return 202 return
203 203
204 RTCinit: ; resets RTC 204 RTCinit: ; resets RTC
205 movlw 0x80 205 movlw 0x80
206 movwf TMR1H 206 movwf TMR1H
207 nop ; See errata DS80284E-page 2
207 clrf TMR1L 208 clrf TMR1L
208 209
209 ; Reset RTC if any part of the time/date is out of range 210 ; Reset RTC if any part of the time/date is out of range
210 movlw d'60' ; Limit 211 movlw d'60' ; Limit
211 cpfslt secs ; Check part 212 cpfslt secs ; Check part