Index: BPU/RTC/prj/MDK/Objects/YC3121_Keil.axf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: BPU/RTC/prj/MDK/Objects/YC3121_Keil.axf
___________________________________________________________________
Deleted: svn:mime-type
## -1 +0,0 ##
-application/octet-stream
\ No newline at end of property
Index: BPU/RTC/prj/MDK/YC3121_Keil.uvoptx
===================================================================
--- /YC3121_demo/ModuleDemo/BPU/RTC/prj/MDK/YC3121_Keil.uvoptx	(revision 570)
+++ /YC3121_demo/ModuleDemo/BPU/RTC/prj/MDK/YC3121_Keil.uvoptx	(working copy)
@@ -113,7 +113,7 @@
         <tDllPa></tDllPa>
         <tDlgDll></tDlgDll>
         <tDlgPa></tDlgPa>
-        <tIfile></tIfile>
+        <tIfile>..\..\..\..\..\ConfigFiles\MDK\flash.ini</tIfile>
         <pMon>Segger\JL2CM3.dll</pMon>
       </DebugOpt>
       <TargetDriverDllRegistry>
Index: BPU/RTC/user/main.c
===================================================================
--- /YC3121_demo/ModuleDemo/BPU/RTC/user/main.c	(revision 570)
+++ /YC3121_demo/ModuleDemo/BPU/RTC/user/main.c	(working copy)
@@ -32,9 +32,15 @@
 /* Private typedef -----------------------------------------------------------*/
 /* Private define ------------------------------------------------------------*/
 #define uartBaud 115200
+#define ONE_MINUTE     60
+#define THIRTY_MINUTE  1800
+#define ONE_HOUR       3600
+#define ONE_DAY        86400
 
 /* Private macro -------------------------------------------------------------*/
 /* Private variables ---------------------------------------------------------*/
+static uint8_t timer;
+
 /* Private function prototypes -----------------------------------------------*/
 void UART_Configuration(void);
 void NVIC_Configuration(void);
@@ -68,9 +74,17 @@
 
 void RTC_Configuration(void)
 {
-	RTC_Set_SecMax(0x8000);
+	uint32_t i = 0xffff;
+	uint16_t rtcCheckValue = 0;
+	while(i--);
+	
+	rtcCheckValue = RTC_Get_SexMax();
+	MyPrintf("32k RtcCVal: 0x%x\n", rtcCheckValue);
+	
+	RTC_Set_SecMax(rtcCheckValue);
+	RTC_SetRefRegister(ONE_MINUTE);
 	RTC_ResetCounter();		//rtc stop counting and counter cleared to 0
-	RTC_SetRefRegister(20);
+	
 	MyPrintf("\nGET RTC RefRegister value: %d\n", RTC_GetRefRegister());
 	RTC_Config(ENABLE);
 	RTC_ClearITPendingBit();
@@ -113,9 +127,17 @@
   * @retval None
   */
 void SEC_IRQHandler(void)
-{			
+{
+	uint16_t rtcCheckValue = 0;
+	
+	timer++;
+	MyPrintf("%d Min\n",timer);
+	
+	rtcCheckValue = RTC_Get_SexMax();
+	MyPrintf("RTC_IRQHandler In 32k RtcCVal: 0x%x\n", rtcCheckValue);
+	
+	RTC_Set_SecMax(rtcCheckValue);
 	RTC_ResetCounter();
-	MyPrintf("RTC_IRQHandler In\n");
 	RTC_ClearITPendingBit();
 }
 
