Jump to content
43oh

[Energia Library] RTC for MSP432 and TM4C, plus NTP for CC3200


Recommended Posts

I've just released the Date and Time Library.

The library leverages the RTC of the MSP432, CC3200
 (non-EMT), TM4C123 and TM4C129. 


As an additional benefit, the library also includes a function to get the date and time from a time server using NTP for the CC3200 (non-EMT).


RTC can be powered by a battery but unfortunately, battery line is hard-linked to main supply on the LaunchPads.

 

Feel free to add support for other LaunchPads at the GitHub repository!

Link to post
Share on other sites

Hello,

 

I am working to get a external RTC working with the MSP430F5529 - I got both DS1307 and DS3231 modules, but I had no luck so far.

 

Is it possible to have a RTC on those boards, without the need for an external module? Will it keep track of time even if the board is cut from power? In which launchpads it is possible to accomplish this?

 

Best regards,

C.

Link to post
Share on other sites

Hello,

 

I am working to get a external RTC working with the MSP430F5529 - I got both DS1307 and DS3231 modules, but I had no luck so far.

 

Is it possible to have a RTC on those boards, without the need for an external module? Will it keep track of time even if the board is cut from power? In which launchpads it is possible to accomplish this?

 

Best regards,

C.

 

 

There are many posts about the DS1307 and I

Link to post
Share on other sites

@altineller: You can find the port of the Adafruit library that I am using with the F5529 and the Adafruit DS1307 here: https://github.com/fmilburn3/RTClib

 

Changes to the code were very minimal as I remember.  As Rei Vilo says, it runs at 5V and you will need to do logic conversion.

 

 

Any help to implement RTC on the MSP430F5529?

@@Rei Vilo: I am planning to work through the TI examples for RTC on the F5529.  Putting together one of your libraries is at the edge of my current capabilities but if I come up with something useful I will let you know.

Link to post
Share on other sites

@@spirilis - what are the acronyms RTC_A and RTC_B? also what does non-EMT and EMT stand for? (competely different subject, but I have been reading, and have not been able to figure these acroynms)

 

Best regards,

C.

Those are TI's name for the RTC peripheral hardware components inside the chips.  RTC_B is a newer version of TI's RTC peripheral and it's mostly used on the nicer FRAM parts (e.g. MSP430FR5969, MSP430FR6989, etc).

 

F5529 is an older chip so its "RTC_A" peripheral might not work exactly the same, and so my library referenced above probably won't work out of the box with it.

Link to post
Share on other sites

Well, I gave up on the DS1307 because it is 5V. I also have a module, DS3231 and trying to get that to work now.

 

Any recomendations for a 3.3V RTC module, with onboard supercaps (so I wont have to deal with finished battery later on)

 

best regards,

c.

 

Yes, use the PCD2129A PCF2129A from NXP: 3.3V, no external crystal needed as already built-in, battery management, ... 

Link to post
Share on other sites

@@spirilis - what are the acronyms RTC_A and RTC_B? also what does non-EMT and EMT stand for? (competely different subject, but I have been reading, and have not been able to figure these acroynms)

 

Best regards,

C.

 

EMT = Energia Multi-Tasking, only for MSP432 and CC3200

non-EMT = standard Energia

 

See http://energia.nu/energia-mt-for-msp432

Link to post
Share on other sites

Yes, use the PCD2129A from NXP: 3.3V, no external crystal needed as already built-in, battery management, ... 

 

Hello Rei,

 

Do you mean PCF2129AT ? 

 

I have found this: http://www.nxp.com/products/interface_and_connectivity/real_time_clocks/rtcs_with_temp_compensation/PCF2129AT.html

 

But googling for PCD2129A returns irrelevant results. (like guitar parts :) )

 

-Best

Link to post
Share on other sites

@@Rei Vilo

 

 

Any help to implement RTC on the MSP430F5529?

 

Some progress.... I have a basic version of the calendar going with the F5529 and Energia - not yet in the form of your library.  As spirilis said, the F5529 uses RTC_A.  Among the deficiencies, compared to RTC_B, is that it cannot access the LF crystal so the lowest power mode it can use is LPM3.  

 

There is quite a bit of adaptation (although I think it is pretty straight forward) to get it into your library.  I am going to work on it a bit more but to be honest, if I really needed a RTC for the F5529 then I would probably go with a RTC module that has battery back-up.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...