i am using lsp1.2 in development which contains "msp430lib" 
that is used to control RTC and IR 
 
i am using the following commands to set the RTC as follow 
msp430lib_set_rtc(iYear,iMonth,iDay,iHour,iMinute,iSecond,iPm);
after formating the date like the following
year (LSB)    ; ( in hex ) i.e. 2006 -> 0x2006 ( LSB=0x06 )
year (MSB)    ; ( in hex ) i.e. 2006 -> 0x2006 ( MSB=0x20 )
month         ; ( in hex ) i.e. Dec. -> 0x12
day           ; ( in hex ) i.e. 31st -> 0x31
hour          ; ( in hex ) i.e. 12   -> 0x12
minute        ; ( in hex ) i.e. 30'  -> 0x30
second        ; ( in hex ) i.e  45"  -> 0x45
 
and get the RTC using 
msp430lib_get_rtc(&iYear,&iMonth,&iDay,&iHour,&iMinute,&iSecond,&iPm);
but 
when setting the clock to 28/2/2009 the next day from the RTC is 29/2/2009 
which is not valued 
when setting the clock to 28/12/2009 the next day from the RTC is 1/1/2009 
which is not valued 
Is there any help/URL/... to fix this problem?
 
------------------------
BEST REGARD                                       
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to