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.

[CC2650 Dev Board]: Display RTC (Current time)

Other Parts Discussed in Thread: CC2650

Dear TI,

I just started working on CC2650 Dev Board. I need to display current time (RTC) on LCD and later I want to use this RTC_call to run the motor at a particular time set. Is there any sample example for doing so. Please suggest~

Thanks n Regards

  • You can use the following 2 function to get the current timestamp.

    AONRTCSecGet()

    AONRTCFractionGet()

    And then write to LCD by referecing to this function since you are using LCD on sensortag

    void SensorTag_displayBatteryVoltage(void)
    {
      char buf[24];
      uint32_t batt;
      
      // Battery monitor (bit 10:8 - integer, but 7:0 fraction)
      batt = AONBatMonBatteryVoltageGet();
      
      batt = (batt * 125) >> 5;
      sprintf(buf,"Batt: %d mV", batt);
      devpkLcdText(buf, 10, 1);
    }

  • Hello Christin,

    Thanks for your suggestion. well, I tried to use these APIs: [Void Seconds_set(UInt32 seconds); UInt32 Seconds_get(Void);]

    As I am getting the Epoch time configuration; which shows the day, date and time (HH:MM:SS) format. What to change, if I only want to show the 'time' (HH:MM:SS) as display, not any other details like day, year, month, date ? Also, it start from the initial time I set [Seconds_set(1412800000], when I switch ON the board again. How can I get the updated current time always, when I switch ON the board ? Thanks

    Also, please suggest me some sample code which uses these functions [AONRTCSecGet(); AONRTCFractionGet()]; I tried to implement these too, but didn't work out. Please suggest~

    Thanks n Regards