This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can I get current time?

Hi, all. I'm using nrf52833.

I'd like to use rtc to get the current time.
What I'm trying to do is take the current time and show the time value on the LCD (year, month, day, hour, minute, second) by spi communication.

First of all, I understood to operate the built-in rtc crystal.
Then, how can I get information about time?
Is there any driver that can bring the current time from Nordic?

And after taking the time, is it right to count the time using rtc?

BR,

lyrics

Parents
  • For the nRF52833, you can use the built-in RTC to keep track of time. However, you first need to initialize it and set the correct date and time because the RTC does not automatically retrieve the current calendar time. Once configured, you can read the RTC values, convert them into the required format, and display the year, month, day, hours, minutes, and seconds on your LCD through SPI communication. I also recently discovered a useful online tool called soma de horário, which is worth exploring for calculating time intervals and managing hours easily.

Reply
  • For the nRF52833, you can use the built-in RTC to keep track of time. However, you first need to initialize it and set the correct date and time because the RTC does not automatically retrieve the current calendar time. Once configured, you can read the RTC values, convert them into the required format, and display the year, month, day, hours, minutes, and seconds on your LCD through SPI communication. I also recently discovered a useful online tool called soma de horário, which is worth exploring for calculating time intervals and managing hours easily.

Children
No Data
Related