Rei Vilo 695 Posted August 1, 2015 Share Posted August 1, 2015 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! Fmilburn 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted August 5, 2015 Author Share Posted August 5, 2015 NTP tested on LaunchPad MSP432 (EMT) + CC3100 BoosterPack Any help to implement RTC on the MSP430F5529? Quote Link to post Share on other sites
altineller 4 Posted August 9, 2015 Share Posted August 9, 2015 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. Quote Link to post Share on other sites
Rei Vilo 695 Posted August 9, 2015 Author Share Posted August 9, 2015 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 Quote Link to post Share on other sites
Fmilburn 446 Posted August 9, 2015 Share Posted August 9, 2015 @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. Quote Link to post Share on other sites
Rei Vilo 695 Posted August 10, 2015 Author Share Posted August 10, 2015 @@Fmilburn Right now, I'm experiencing issues with the MSP430F5529 on my MacBook, especially with the USB driver, so I can't explore the RTC. Some pointers: GitHub repository https://github.com/rei-vilo/DateTimeLibrary https://github.com/spirilis/RTC_Bfrom @@spirilis Using the MSP430 Quote Link to post Share on other sites
spirilis 1,265 Posted August 10, 2015 Share Posted August 10, 2015 Keep in mind I don't think the F5529 uses RTC_B, it uses RTC_A iirc. But there are similarities. Quote Link to post Share on other sites
altineller 4 Posted August 10, 2015 Share Posted August 10, 2015 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. Quote Link to post Share on other sites
altineller 4 Posted August 10, 2015 Share Posted August 10, 2015 Keep in mind I don't think the F5529 uses RTC_B, it uses RTC_A iirc. But there are similarities. @@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. Quote Link to post Share on other sites
spirilis 1,265 Posted August 10, 2015 Share Posted August 10, 2015 @@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. Quote Link to post Share on other sites
Rei Vilo 695 Posted August 11, 2015 Author Share Posted August 11, 2015 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, ... Quote Link to post Share on other sites
Rei Vilo 695 Posted August 11, 2015 Author Share Posted August 11, 2015 @@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 Quote Link to post Share on other sites
altineller 4 Posted August 11, 2015 Share Posted August 11, 2015 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 Quote Link to post Share on other sites
Rei Vilo 695 Posted August 11, 2015 Author Share Posted August 11, 2015 Yes, PCF2129A. Sorry! Quote Link to post Share on other sites
Fmilburn 446 Posted August 11, 2015 Share Posted August 11, 2015 @@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. Rei Vilo 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.