Questions tagged [real-time-clock]

Quoting Wikipedia:

A real-time clock (RTC) is a computer clock (most often in the form of an integrated circuit) that keeps track of the current time.

Micro controllers, Android, related assembly (or low-level) code are concepts that usually accompany so make sure you pick the right one.

199 questions
0
votes
0 answers

How to setup RTC clock output in Linux?

I am working on an embedded Linux system (kernel-5.10.24). And there is a PCF8563 RTC in system, its CLKOUT is connected to other hardware logic. Now in Linux system, I want to configure the CLKOUT rate (it is configurable in PCF8563), but I did NOT…
wangt13
  • 959
  • 7
  • 17
0
votes
0 answers

using adjtime() in ESP32 sleep mode

I'm developing a device that can go to deep sleep while maintaining the RTC clock working during that period of sleep. I'm using the ESP32 Dev module with an external 32.768KHz to be able to keep the internal RTC as accurate as possible, but I found…
0
votes
0 answers

Failed to unload kernel module: Resource temporarily unavailable

I am working on an embedded Linux (kernel-5.10.24). I hit an error when I tried to unload RTC driver module, it was: # lsmod rtc_test 6490 1 - Live 0xc02f5000 # modprobe -r rtc_test modprobe: remove 'rtc_test': Resource temporarily unavailable I…
wangt13
  • 959
  • 7
  • 17
0
votes
1 answer

How to trigger RTC global interrupt on stm32f103 blue pill

I am trying to use the RTC global interrupt for the stm32f103c8t6, but I have had no luck. I am not sure if this is an issue with my configuration, or if the RTC global interrupt handler is not used for the second interrupt at all. I have been…
beyonson
  • 23
  • 1
  • 8
0
votes
0 answers

In-the-wild accuracy of mobile device wall clock

I like to sync some events between fixed and mobile devices to at about video frame precision (eg. 1/30s). Mobile device application will be a web application (eg. running in Chrome or Safari most likely on Android or iOS platform for the vast…
dronus
  • 10,774
  • 8
  • 54
  • 80
0
votes
1 answer

Load onboard RTC device on NanoPi NEO from NAS kit

I have this NanoPi NEO LTS device which I'm using in conjunction with NAS Kit. This article states that Allwinner H3 (CPU) has an inbuilt RTC which is loaded to /dev/rtc0 which I can confirm by running ls -al /dev Output: lrwxrwxrwx 1 root root …
0
votes
1 answer

Time is not updating after select value from dropdown list

I'm encoutered a problem, where I select value from dropdown list and it displays Londom time, from mainCities array. And it doesn't matter if I select other countries from the list, just 1 second it display the correct time, and the second it's…
0
votes
0 answers

Windows changes the time by one minute regularly, how to get around it?

My windows application developed in Delphi works 7 days a week on a PC that is not connected to the Internet.I developed it to receive the WM_TIMECHANGE message. I notice that I receive this message regularly, at a frequency that seems to depend on…
0
votes
0 answers

How to make an app on MIT App Inventor that can use real times and dates?

Is there a way/how can I access real satellite times and dates to utulize in, for example, a scheduling app on mit app inventor? I would really appreciate help, as there is a project that I have been working on for a while now but can’t get this to…
0
votes
0 answers

How can I read RTC in assembly?

I'm writing a bootloader. How can I read the current seconds range of the CMOS clock(0-59) in 16 bit x86 assembly? I tried reading through this and I'm confused. https://wiki.osdev.org/CMOS#CMOS_Registers
0
votes
1 answer

Why doesn't arduino nano together with DS3231 make LED strip work as a clock? (I use FastLED library)

For some reason, my program doesn't make the LED clock work properly. I know that the problem is either in the breadboard or the program itself, since with the other program and different circuit everything works well. Everything is fine with the…
0
votes
2 answers

How to check the last day of the month in MicroPython and/or RTC DS1307?

I have a Raspberry Pi Pico with MicroPython and a DS1307 clock connected to it. How can I check what is the last day of the month for a given year and month? I don't care about using RTC if it can be checked in MicroPython itself. For example, for…
Łukasz
  • 3
  • 3
0
votes
1 answer

how do i make the clock interface update on tkinter?

I'm trying to build a clock with python and tkinter but I don't know how to make the tkinter UI update every second. Right now it shows the time on the UI but it doesn't updtade. I have tried to make a loop with .after but python gives the following…
0
votes
1 answer

PCF85063A enable second alarm register

I am developing an RTC library for Nuvoton M031SD2AE MCU. I use PCF85063A. I want to enable second alarm. In datasheet it's address is 0x0B. This is the second alarm register. RTC second alarm register void set_second_alarm(void) { uint8_t…
Bowman
  • 109
  • 6
0
votes
0 answers

How can I toggle an LED at 5th second of each minute with RTC Alarm?

I am working STM32F746-Disco Board, and trying to implement an Alarm in register level. I am trying to implement a system such that it toggles the user led at 5th second of each minute. However, my program toggles differentially. For now, I can…