Hi
form the code, I can not assume you need to work in hex format. Do you know
which chip provides the RTC function to the EVM?
Albert

2009/12/24 Mohamed AbdElwahed <[email protected]>

> thanks for your kind reply,
>
>
>
> Yes I should.
>
> From msp430commands.txt you can find below
>
> Command (0): setRTC() - Set Realtime Clock
>
> ------------------------------------------
>
>
>
> > I2C Write (10 bytes)
>
>     [0] = 10            ; Message length
>
>     [1] = 0             ; Command index
>
>     [2] = year (LSB)    ; ( in hex ) i.e. 2006 -> 0x2006 ( LSB=0x06 )
>
>     [3] = year (MSB)    ; ( in hex ) i.e. 2006 -> 0x2006 ( MSB=0x20 )
>
>     [4] = month         ; ( in hex ) i.e. Dec. -> 0x12
>
>     [5] = day           ; ( in hex ) i.e. 31st -> 0x31
>
>     [6] = hour          ; ( in hex ) i.e. 12   -> 0x12
>
>     [7] = minute        ; ( in hex ) i.e. 30'  -> 0x30
>
>     [8] = second        ; ( in hex ) i.e  45"  -> 0x45
>
>     [9] = pm            ; 0 = AM, 1 = PM
>
>
>
> > Wait 100 us.
>
>
>
> > Done.
>
>
>
> and have a look at the c file attached for the msp430lib and it seems hex
> usage is required
>
>  --------------------------
>
> BEST REGARD
>
>
>
>
>
>
>
> ------------------------------
> Date: Thu, 24 Dec 2009 13:12:17 +0200
> Subject: Re: DM6446, Problem in RTC
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>
>
>  are you sure you need to tell the numbers in hex?
> Albert
>
> 2009/12/24 Mohamed AbdElwahed <[email protected]>
>
>
>
> 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
>
>
>
>
> --
> Albert Burbea
> Harishonim 8
> Ramat Gan 52502, Israel
> Tel/Fax + 972-3-7526016
> Mobile: +972-52-3541842
>
> ------------------------------
> Windows Live: Friends get your Flickr, Yelp, and Digg updates when they
> e-mail 
> you.<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_3:092010>




-- 
Albert Burbea
Harishonim 8
Ramat Gan 52502, Israel
Tel/Fax + 972-3-7526016
Mobile: +972-52-3541842
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to