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
1
vote
2 answers

Is there an autonimus realtime clock wilth month loss less than 10milliseconds?

Looking for a realtime clock for IoT project. Need a millisecond resolution for my app protocol and its loss is critical. So I wonder if there is an autonimus realtime clock (with a battery) that will loose less than 10ms per month and work for a…
DuckQueen
  • 772
  • 10
  • 62
  • 134
1
vote
1 answer

How to setup the stm32f4 real time clock(RTC) to get valid values in the sub second register?

I like to use my stm32f412 RTC at high resolution. For testing I use CubeMX code generator. For reading the rtc timestamp I am using: // get sub second ss = (u16_t) LL_RTC_TS_GetSubSecond(RTC); // 0x00HHMMSS in bcd format t =…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
1
vote
3 answers

STM32F051 HAL_RTC_SetDate not setting Year correctly

So I am using a smart phone application to set the Time and Date of the RTC on the micro-controller. The RTC runs on LSE. The formatting of the string that I sent over to the micro-controller is correct. I can be certain of that when I set the…
dan_wut
  • 45
  • 1
  • 10
1
vote
0 answers

Accurate synchronization of RPI CPU clock via NTP

I'm going to be doing some clock programming with RPi. I'm fairly new to this area of coding so I want to check an assumption with the hive mind. I will be using clock functions like "usleep" and "timer_create" with CLOCK_REALTIME as the clock ID.…
Mark
  • 436
  • 4
  • 18
1
vote
3 answers

How to improve accuracy of CMWX1ZZABZ-091 RTC (Real Time Clock)

I'm using the B-L072Z-LRWAN1 with the CMWX1ZZABZ-091 LoRa® /Sigfox™ module (Murata) The internal RTC (real time clock) is inaccurate and I'm seeing 10 seconds loss per day for some modules. My question is, why could this be? Datasheet says 1.73…
Flying Swissman
  • 818
  • 2
  • 14
  • 39
1
vote
0 answers

I2C LCD shows weird character

I am using a DS3231 timer circuit and a I2C lcd plus RELAY shield with arduino uno. My target is to turn on the relay according to pre-programmed time and showing the current time in the LCD. The program works fine, except i have used a sub program…
Kaiser
  • 11
  • 1
  • 3
1
vote
1 answer

Out of bounds RTC output in real mode assembly

I'm trying to make commands that return time and date in a 16 bit real mode OS. When I read from the RTC, however, some wierd values are returned. According to the RTC, there seems to be 90 seconds per minute and 90 minutes per hour. Below, you see…
bjarke15
  • 85
  • 5
1
vote
0 answers

Building a Days Counter with Arduino Leonardo and an RTC 3231

I've been trying to create a days counter that starts counting from a unix timestamp. I'm using an arduino Leonardo, an RTC DS 3231 and a 7-segment serial display(by microbot). Here's the display link: Serial Display Link But I cannot get the…
1
vote
0 answers

Esp8266 measuring time between deep sleeps

I'm using a Nodemcu Esp8266 v1.0 to measure some data and sending it with WiFi. I'm programming it with the Arduino library. In order to save battery, I use Deep Sleep. Some of the measurements use interruptions to wake-up the device BEFORE the time…
EnriqM
  • 11
  • 5
1
vote
1 answer

How do I make an analog clock using winforms in F#?

I have to create an analog clock using winforms in F#. The clock needs also to have a label showing date and time in digital form. I have figured how make the label with time and date, as well as drawing the circle and the clockhands, but I'm having…
Chrizzar
  • 27
  • 3
1
vote
0 answers

DCF77 on BeagleBone - Get Time Signal and decode it

I want to have a RTC on my BBB. I wired the DCF77 on the UART4. Can you tell me how can I read the signal of the DCF77 and decode it on the BBB ? Thx
Ben Jo
  • 71
  • 1
  • 15
1
vote
1 answer

Digital clock simulation in Keil Proteus

This C programme is supposed to simulate a digital clock. There gonna be 3 7segment in the Proteus programme to show the hour, minute and second (like a digital clock) #include void main() { int t, i, j, k, a, b, c, d, e; e = 0; P3 =…
Kasra GH
  • 157
  • 2
  • 5
  • 22
1
vote
1 answer

Issue while reading data from I2c Slave device with PIC16F886

I am newbie to Pic Programming, I am using MPLAb & Hitech compiler to execute above code. I am trying to Interface PIC16F886 with ISL12022M Real time I2C device. i copied code example written for DS1307 interface with 16F887A PIC. I have capable to…
user50949
  • 37
  • 2
  • 7
1
vote
0 answers

VBA Code for PowerPoint Dynamic Clock

I want to create a dynamic clock in PowerPoint and have it show up in the same location on all slides. Below is the code I have been working on to create the dynamic clock. Instead of "Do Until 1 < 0", I probably want something along the lines of…
Devin
  • 21
  • 1
  • 4
1
vote
2 answers

Clock that is able to "tick"

I was coding a program using Java for a clock that is able to "tick" but there are problems with it. I assume it has something to do with the getter and setters, or the toString() method. counter class package clock; public class Counter { private…
Wing Hang Khoo
  • 41
  • 2
  • 10