• Announcements

    • bluehash

      Forum Upgrade   03/11/2017

      Hello Everyone, Thanks for being patient while the forums were being fixed and upgraded. Please see details and report issues in this thread. Thanks!

Search the Community

Showing results for tags 'RTC'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


  • Community Calendar

Found 14 results

  1. Windows 7 / Code Composer Studio 7 / Energia 18 / MSP 432 LaunchPad + CC3100 WifI I'd like to use a RTC_C calendar alarm to turn on/off my some streaming data collection, however, it doesn't seem to work. That is, once I register the RTC_C interrupt via RTC_C_registerInterrupt, I'm unable to init the WifI. Specifically it hangs here in WiFi.cpp: int iRet = sl_Start(NULL, NULL, NULL); I've whittled my code down to what appears below. Does anyone have any ideas? jrd ----- // Header files #include <WiFi.h> // Energia #include <driverlib/MSP432P4xx/rtc_c.h> #ifndef cWiFiSSID cWiFiSSID should be #define as the name of your WiFi SSID #endif #ifndef cWiFiPassword cWiFiPassword should be #define as the name of your WiFi password #endif void vRtcIsr() { // Clear the flag, but don't actually do anything RTC_C_clearInterruptFlag(RTC_C_CLOCK_ALARM_INTERRUPT); } // Main setup section void setup() { // Turn on serial output Serial.begin(115200); Serial.println(""); // Enable the clock RTC_C_startClock(); // Set an alarm RTC_C_setCalendarAlarm( 0, RTC_C_ALARMCONDITION_OFF, RTC_C_ALARMCONDITION_OFF, RTC_C_ALARMCONDITION_OFF); RTC_C_registerInterrupt(vRtcIsr); RTC_C_enableInterrupt(RTC_C_CLOCK_ALARM_INTERRUPT); } // Main loop section void loop() { // Start WiFi Serial.println("Attempting to turn on Wifi"); WiFi.begin(cWiFiSSID,cWiFiPassword); Serial.println("Success"); // Hang forever for(;; }
  2. I've recently started using the real time clock on the TM4C1294. I have the clock working, keeping time, and set with NTP. I want to try and make it a battery backed RTC though. I'm currently wasting time in an airport, so I can't test. From the schematic, it looks like if I remove R39, and connect a battery to TP11 and gnd - I should be able to keep the clock going while the board is powered down. Has anyone tried this, or done it with a custom board? Edit - Oct 10th. Finally got a chance to try it, and it does work! I put 3.3v from the bench power supply on TP11, with R39 removed and the RTC stayed running and on time while the main board was powered down. Next step is to try a small supercap in place of the bench supply and see how long I can keep the RTC running off that.
  3. I posted a blog entry about how I used the STM32L1 RTC (a few years ago) as a tickless, ultra-low-power timer for my RTOS. http://www.indigresso.com/_blog/?p=181 The MSP432 has a similar problem. Only the RTC and Watchdogs run in LPM3 and 3.5, no other timers do, but you want to use those LPMs for timed sleep! There is a workaround, and it is actually very fast thanks to the really great ALU in the CM3 and CM4 devices. My code is also implemented in bulletproof production firmware that I've shipped to various industries . Yes, the code is for STM32L1, but I think you should be able to very easily port it to MSP432. If you wait long enough, I already will have ported it, but I noticed some forum activity on this very topic last week and I had to step in. Happy Coding.
  4. Hi, Can someone help me to implement an internal RTC module code in TIVA TM4C1294NCPDT using Energia? Thanks.
  5. Hi fellow developers! I need some help!! (of course or I wouldnt be here...) I'm testing my MSP430FR4133 launchpad... And I need a RealTime Clock interruption of a second, exactly. I tried to use OneMsTaskTimer, which works, but after 32min it gets a delay of 3.5sec. So I concluded that it does not use RTC. I could not find a library that would work on FR4133. And still didnt workout a way of implementing RTC my self. Have you guys done anything yet? Thanks!! Regards!
  6. Hi, I've made a very simple RTC library using the RTC method in the PRCM library. It is intended for the CC3200 Launchpad and has only been tested on the CC3200 Launchpad so far. Overview: Uses the PRCM library It follows UNIX Time It was made with the "Time" library of the Sparkcore in mind. It has the following methods:ccRTC.zone() ccRTC.now() ccRTC.year() ccRTC.month() ccRTC.day() ccRTC.weekday() ccRTC.hour() ccRTC.minute() ** ccRTC.begin() Limitations: (Unfortunately there are a few actual limitations) It is accurate to only about 4 seconds an hour. (That is pretty bad, but can it can be used for non time critical applications if time is synced with an online server regularly) My tests haven't shown any issues so far, but it is not foolproof yet. If you're using an NTP server to sync time, then you'll need to convert it to UNIX time first before you use the ccRTC.setTime() You can get the code and a basic guide from here : https://github.com/nitred/ccRTC Additional Documentation for the the functionality can be found here : http://docs.spark.io/firmware/#libraries-timeIt Its a work in progress and I know for a fact that there's a better way to do it than this but I really needed this library and I hope you find it helpful too. Any and all feedback and improvements are welcome!
  7. Another trivial port... this is the RTCLib I've been using for a couple of AVR projects, it runs with really minor modifications (just stripped out PROGMEM related stuff). I've already pulled a request to the main repo (I've been contributing DS1388 to this lib in the past). While the pull gets in, here is the library on my fork: https://github.com/elpaso/rtclib I've tested the library on my LP 1.5 with a DS1388 (3.3V version) and it's working fine. Example #include <Wire.h> #include <RTClib.h> RTC_DS1388 RTC; DateTime now; // Ugly globals... uint8_t timeH; uint8_t timeM; volatile uint8_t timeS; uint8_t dateD; uint8_t dateM; uint16_t dateY; uint8_t dateW; void setup() { Wire.begin(); RTC.begin(); if (!RTC.isrunning()) { // following line sets the RTC to the date & time this sketch was compiled RTC.adjust(DateTime(__DATE__, __TIME__)); } } void loop() { // Read clock now = RTC.now(); timeH = now.hour(); timeM = now.minute(); timeS = now.second(); dateD = now.day(); dateM = now.month(); dateY = now.year(); // Do something with those figures... }
  8. Hi, I'm trying to make a clock with a Tiny RTC module and a iTead 5110 Nokia LCD. I'm using Adafruit RTClib and the energia LCD_5110_SPI. Each library an device are working fine separately but when put together it stops working, is it possible to have SPI and I2C device working simultaneously? Thanks.
  9. Hello! This is my project Real Time Clock. The project used RTC module ds1394, temperature sensor ds18b20 and driver 7-segment display tm1638. msp430g2553 MCU integrates devices with two hardware ports SPI (USART1, USART2). Clock Functions:- Showing the time, date, day of the week; - Set the alarm; - Shows the temperature of the sensor ds18b20; - Control the brightness of the indicator. Video: Russian description Source code Video: My project site Project includes: - DS1394 msp430 launchpad interface - ds18b20 maxim + msp430 launchpad - Library for TM1638 to MSP430 PS: my son was born! Now I do not know whether the time to continue the projects. I hope that I can find the time to do a good description of the projects. PPS: Sorry for my english...
  10. Hello, I'm a new member and also a noob user of a Stellaris LM4F120 LaunchPad Evaluation kit... =) I'm watching the workshop videos available here, and trying to develop a little project of my own, an automatic fish feeder. Just to see if I can... The idea is based on this other project i've found here, but I want to do the timer on the MCU, and use its iterrupt to activate the motor. So I'm kind lost on how to start the whole thing... But what I'll certainly need its to configure correctly a RTC... To proper set when the feeds will happen. How do i configure the SysCtlClockSet? And how can I read the Timer, when its working on RTC mode? Any help on this subject or the project as a whole will be welcomed.
  11. Hi All, I am very new to MSP430G2231,Can you please guide me how to manually connect the ds1307 to launchpad as i have nly 14 pins. And how i can generate a interrupt at 10'O clock and 2'O clock everyday reading a time from real time clock through code(embedded C). In between what all i should take in my coding part. Hoping to get guidance Thanks in anticipation Nikita.
  12. Hi folks. I'm fairly new to MSP430 development, though I've tinkered with AVRs for many years previously. Currently I'm working on a board that needs to use the onboard RTC_C module on the MSP430F6726 (using the Rowley CrossWorks/CrossStudio IDE). I've read through the user guide's RTC_C section thoroughly and written many variations of the setup code, including copying and pasting the official example (MSP430F673X_RTC_01.c)... I can't get it to count or fire RTCRDY interrupts no matter what I do. Below is my simple test code, which should toggle an LED on P5.2 every second (but doesn't work). Note that I have a 32.768 KHz watch crystal on XT1. #include <__cross_studio_io.h> #include <msp430.h> #include <inmsp.h> // initialize main clock sources // MCLK = 19.6608 MHz (about the max speed I can get without tweaking other chip settings) // SMCLK = 4.9152 MHz // ACLK = 32.768 KHz void SetupClock(void) { UCSCTL3 = 0; // FLL uses XT1CLK (default) UCSCTL4 = 0+ // ACLK = XT1CLK = 32.768 KHz SELS1+SELS0+ // SMCLK = DCOCLK SELM1+SELM0; // MCLK = DCOCLK UCSCTL5 = DIVS1; // SMCLK = DCOCLK/4 UCSCTL6 = XT2OFF | XCAP0 | XCAP1; // turn off XT2, 12pF load capacitance on XT1 _BIS_SR(SCG0); // disable the FLL control loop //__bis_SR_register(SCG0); // (alternate way of disabling FLL control loop) UCSCTL0 = 0; // setup for 13 MHz UCSCTL1 = DCORSEL_5; UCSCTL2 = 599; // FLL multiplier; DCOCLK = (599+1)*REFOCLK = 19.6608 MHz _BIC_SR(SCG0); // enable the FLL control loop __delay_cycles(250000); // wait for DCO to settle // Loop until XT1, XT2 & DCO fault flag is cleared do { UCSCTL7 &= ~(XT2OFFG | XT1LFOFFG | DCOFFG); // Clear XT2,XT1,DCO fault flags SFRIFG1 &= ~OFIFG; // Clear fault flags } while (SFRIFG1 & OFIFG); // Test oscillator fault flag } void RTCISR(void) __interrupt[RTC_VECTOR] { unsigned int rtcivBackup; rtcivBackup = RTCIV; //RTC ready if (rtcivBackup == RTCIV_RTCRDYIFG) { //toggle LED P5OUT ^= BIT2; } } void SetupRTC(void) { //unlock the rtc registers RTCCTL0_H = RTCKEY_H; //enable the rtc ready interrupt RTCCTL0_L = RTCRDYIE_L; //setup the calendar registers RTCYEAR = 2013; RTCMON = 7; RTCDAY = 24; RTCDOW = 3; RTCHOUR = 13; RTCMIN = 45; RTCSEC = 0; //clear the prescale counters RT0PS = 0; RT1PS = 0; //calendar mode RTCCTL13_L |= RTCMODE_L; //unhold the rtc RTCCTL13_L &= ~RTCHOLD_L; //lock the RTC registers again RTCCTL0_H = 0; } int main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer SetupClock(); //setup output LED P5DIR |= BIT2; //start with LED off P5OUT |= BIT2; SetupRTC(); //enable general interrupts _BIS_SR(GIE); while(1) {} return 0; } Any suggestions on how I can make it work? The code should also work with CCS if you change the RTCISR function definition. Thanks for the help, I'm really stuck on this problem.
  13. Hi guys Here I am again to ask for help :oops: So the deal is this: I'm waiting for a nokia 5110 LCD screen to arrive and I'm thinking on what I can do with it. My idea was to make something like a clock with a thermometer and, with an accelerometer, when I bounce it it works like a magic 8 ball (I think about a decision I have to make and it "helps" me with a "Yes" "No" and "Maybe" answer). The maginc 8 ball isn't a real issue. I gess that the code is pretty simple (I can use a sample code from the book "Getting started with the MSP430") and that shouldn't be a problem. My problem is about using a RTC chip to deal with the clock. Is that really needed? A MSP430G2542 is capable of doing the job (Thermometer + clock + analog accelerometer reading)? Hope anyone can help me. canibalimao
  14. Found this through hackaday. Sunrise Alarm Clock. Uses a G2553 (Programmed via Launchpad) Uses a DFC-77 Atomic Radiowave Time Receiver for, well, atomic time. Standard Character LCD (via a shift register) (and pwmed backlight) Settings through Pushbuttons Simple Alarm via PWM melody. 10mm LEDS to provide Sunlight (These could/should be replaced with high current 1a/3a type leds imho) And battery backup (with backup status recognition on p1.4 interrupt) via three diodes! A full featured project, though it could use better leds, and unless you are in Europe, a different clock (either standalone rtc, or a regional radio clock source WWV or WWVB in US though I can't find a source for modules) And a complete schematic would be nice (I think they mislabeled which regulator they use, since they have 5v in on a 7805 regulator (5v out), connected to the g2553) http://renaud.schleck.free.fr/reveil.php