diff src/rtc.asm @ 604:ca4556fb60b9

bump to 2.99beta, work on 3.00 stable
author heinrichsweikamp
date Thu, 22 Nov 2018 19:47:26 +0100
parents e1f0f5e3d4e4
children d866684249bd
line wrap: on
line diff
--- a/src/rtc.asm	Thu Oct 11 21:06:29 2018 +0200
+++ b/src/rtc.asm	Thu Nov 22 19:47:26 2018 +0100
@@ -1,6 +1,6 @@
 ;=============================================================================
 ;
-;   File rtc.asm													## V2.98
+;   File rtc.asm													## V2.98c
 ;
 ;
 ;   Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
@@ -11,7 +11,7 @@
 #include "hwos.inc"
 #include "math.inc"
 
-sensors		CODE
+rtc		CODE
 
 ;=============================================================================
 
@@ -23,11 +23,11 @@
 	movwf	mins
 	movlw	.12
 	movwf	hours
-	movlw	.1
+	movlw	.2
 	movwf	day
-	movlw	.8
+	movlw	.12
 	movwf	month
-	movlw	.18
+	movlw	.17
 	movwf	year
 ;	rcall	rtc_set_rtc			; writes mins,sec,hours,day,month and year to rtc module
 ;	return
@@ -39,9 +39,9 @@
 	movwf	EECON2
 	movlw	0xAA
 	movwf	EECON2
-	bsf	RTCCFG,RTCWREN		; Unlock sequence for RTCWREN
-	bsf	RTCCFG,RTCPTR1
-	bsf	RTCCFG,RTCPTR0		; year
+	bsf		RTCCFG,RTCWREN		; Unlock sequence for RTCWREN
+	bsf		RTCCFG,RTCPTR1
+	bsf		RTCCFG,RTCPTR0		; year
 	movff	year,WREG
 	rcall	rtc_dec2bcd			; IN: WREG in decimal, OUT: WREG in BCD, also sets to bank16h!
 	movwf	RTCVALL				; year
@@ -68,7 +68,7 @@
 	movwf	EECON2
 	movlw	0xAA
 	movwf	EECON2
-	bcf	RTCCFG,RTCWREN		; Lock sequence for RTCWREN
+	bcf		RTCCFG,RTCWREN		; Lock sequence for RTCWREN
 	banksel	common
 	return