This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430 example code for Real-Time Clock with Calendar and Alarm functions

Other Parts Discussed in Thread: MSP430FR5739, MSP430F5310, MSP430WARE, MSP430F5529, MSP430F5335

Hello,

                     Is there any example code for time of day application?

 

 

Regards,

Harika.

  • Have you looked at the examples provided for whatever chip it is that you're using?

    What about the Chronos Watch - isn't there a clue in the name...?

  • The chip I'm using is MSP430FR5739 and there were no examples related to this. I've also seen MSP430F5310. Is there any other micro folder where i can find that example?

  • Hi Harika,

    You may want to try looking at the code example for the F5438A in this folder called msp430x54xA_RTC_02.c. This will give a general understanding of using the RTC module in calendar mode. You will need to tweak the code a little bit for your device (for example, register names like RTCAHOUR will have to change because the FR5739 has an RTCB module) but the overall operation should be pretty similar.

    Hope this helps!

    Regards,

    Katie

  • The chip I'm using is MSP430FR5739

    Didn't you think it would have been useful to state that in your initial post?

    there were no examples related to this

    Indeed. The sample download for that chip is http://www.ti.com/litv/zip/slac491a - and that has no RTC example.

    I've also seen MSP430F5310 

    The sample download for that chip is http://www.ti.com/litv/zip/slac469b - also has no RTC example.

    Katie Enderle said:
    code example for the F5438A in this folder called msp430x54xA_RTC_02.c.

    Yet another different download! http://www.ti.com/lit/zip/slac375  -at last!  this one does have RTC examples!

    I think this multitude of different downloads is unhelpful - especially, as seen here, if one is likely to need an example from a different download.

    I think you should take an example from the Stellaris guys, and provide a download that contains everything for every chip and every board - that would make it much easier to find examples for "similar" chips.

    Of course, that doesn't have to mean that you stop providing the individual downloads.

     

  • Hi Andy,

    This is good feedback, and something we've heard from others as well. We are working on providing a better user experience going forward, so hopefully this will be better in the near future.

    Regards,

    Katie

  • Katie Enderle said:
    We are working on providing a better user experience going forward, so hopefully this will be better in the near future.

    You mean this: http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/152563.aspx ?

  • Hi Andy,

    Yes, this is what I was referring to. Now you can get to all of the code examples straight from CCSv5 using the Resource Explorer view. I'm hoping that this will make things easier for everyone to find by keeping it all in one place.

    Have you tried out MSP430Ware and MSP430 Driver Library yet - how are you liking it?

    Regards,

    Katie

  • Katie Enderle said:
    Have you tried out MSP430Ware and MSP430 Driver Library yet

    Not had a chance yet - I'd only just seen it when I made that post!

     

  • Katie and all,

    When I click on the links to the webpages listed here, that are supposed to contain MSP430 Real-Time Clock Calendar code , I am told that the Web page cannot be found.

    Could you please send me a link to an code example for the MSP4305529 Real Time Clock.

    I ussually only have positive things to say about TI and I am very grateful for the code examples that they do provide. This is one of the things that drew me to the MSP430 family. However, the the 'C language code examples for MSP4305529 do not have a main() and cannot be run on their own. I am not sure why this would be a problem.

    I was only able to figured out how to uses a sample timer (TimerA) to trigger the ADC12 D to A converter by scouring the forum. and downloading the one day workshop for the MSP430. During implementation, I found many things to be unclear and ran into many problems.

     This is to be expected, but more examples would certainly have helped. For instance, the example was primarily to illustrate the low power capabiliites of the MSP4305529 but there were no example of using the sample timer to trigger the ADC12 while monitoring three 400 Hz signals with oversampling.

    I know that TI is not in the business of providing solutions and that is our job, but one example of a real high speed application would certainly be a help. I bet that I am not the only person that wished that this was so.

  • Hello Mark,

    I recently tried the Real Time Clock Module of the MSP430f5529 series microcontroller.

    Check out the base firmware for the MSP430f5529 Experimenter Board found here: http://www.ti.com/tool/msp-exp430f5529

    Install the MSP-EXP430F5529 Software. Included there is the code for the User Experience for the Experimenter Board. One of those files is called Clock.c as well as Clock.h, for the header files.

    A sample program for Real-Time Clock Calendar mode is found there. Hope this helps!

    Regards,

    Roman Lorenzo Balayan

  • Hi Mark,

    Mark MacNab said:

    When I click on the links to the webpages listed here, that are supposed to contain MSP430 Real-Time Clock Calendar code , I am told that the Web page cannot be found.

    Sorry about the link in my earlier post - what happened is that I had linked directly to the particular revision of the code examples that was available at the time I made the post last year, and the revision has changed since then, making the link invalid. I should have used a version of the link that would be revision-agnostic.

    Here is the corrected one:

    http://www.ti.com/lit/zip/slac375  (See example called msp430x54xA_RTC_02.c for Calendar mode. You can also now find all of these code examples straight from CCSv5 in MSP430Ware resource explorer).

    This link should now continue to forward to the latest version of the zip file even when a new revision of the code comes out. I've also gone back and edited the earlier posts to put in the correct link as well so others won't run into the same problem - thanks for letting me know! 

    Regards,

    Katie

  • I was able to find several RTC examples inside the msp430ware_1_40_01_44 folders

    C:\ti\ccsv5\ccs_base\msp430\msp430ware_1_40_01_44\examples\driverlib\MSP430F5xx_6xx

    They are optimized for the launchpad USB platform

  • Hi, I want real-time clock code of MSP430F5335. Please help me.

  • Hi Tran,

    Please see the msp430f66xx_rtc_01.c example in the code examples linked off of the MSP430F5335 product page www.ti.com/lit/zip/slac417

    Regards,

    Katie

  • hi Katie, I want to show hour, minute, second in teraterm pro. What will I do? Please give me a code.

  • Hi Tran.

    Tthe path which his shared by Katie will give you the code for the same you were asking.

  • Hi Tran,

    The code example I pointed you to in the zip file that I linked, shows how to use the RTC in calendar mode to track hour, minute, second, etc. To display output back to the computer into a terminal program, you will need to look at one of the UART examples to send this RTC data back to the PC - there are UART examples also inside the same zip file that I linked. You'll need to make a program that combines these two functions from our different examples to do what you want.

    Regards,

    Katie

  • Hi Katie. I'm working on SPPLEDemo, I want to show real-time clock of MSPF5335 into teraterm in calendar mode. What I have to do???

  • Hi Tran,

    If you are using SPPLEDemo (Bluetopia?) with CC256x, then for help understanding how to use it to transmit the data please try searching and posting in the CC256x Bluetooth forum: http://e2e.ti.com/support/wireless_connectivity/f/660.aspx

    For simply running the RTC in the MSP430, the code I linked before should help and you should be able to incorporate that into your bluetooth code. But for help with the actual communication you'll need to try looking in that other forum.  

    Regards,

    Katie

  • Hi Katie. Can you give me you facebook or skype to talk connvenient.

**Attention** This is a public forum