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
1 answer

Controlling the real-time clock module PCF8563 with python over i2c - understanding smbus

I am trying to control a real-time clock module PCF8563 with python. I connected the module to my Raspberry Pi and I am able to read the clock from the module. I would like to use the internal alarm functionality of the module and control this…
karlitos
  • 1,604
  • 3
  • 27
  • 59
0
votes
2 answers

Arduino TimeAlarms are not working sometimes

i use an Arduino Mega compatible board (SainSmart Mega 2560 R3 ATmega2560-16AU) which has a rtc module attached (v1.1 ds1307rtc) and working on it with the attached code. I have used the TimeAlarms library (downloaded it from…
Matze
  • 11
  • 1
  • 4
0
votes
1 answer

Hardware Clock goes in future sometimes

I have Slackware with kernel version 2.6 in machine. ntpd is off on that machine. I am facing strange issue. Sometimes in a month, hardware clock goes some months ahead, sometimes some years and sometime some minutes. I am unsure about software…
Shozab Hasan
  • 567
  • 5
  • 11
0
votes
1 answer

Beaglebone Black: RTC DS1307/DS1338 gives error in Android at bootup

I am using the TI-Android-JB-4.2.2-DevKit-4.1.1 to build an Android for Beaglebone Black which works perfectly well. I try to use the RTC-Cape (http://elinux.org/CircuitCo:RTC_Cape). With the "onboard" Angström on the BBB I was able to set and read…
0
votes
2 answers

MSP430 Real time clock (RTC_B) doesn't work. Cannot write date/time registers

I'm trying to set date/time registers using the RTC_B module of MSP430F5338 microcontroller. I'm doing it like this: RTCCTL0 = 0; RTCCTL1 |= RTCHOLD +RTCBCD; RTCHOUR = 0x14; RTCCTL1 &= ~RTCHOLD; It doesn't work, and simply ignore the assignements.…
0
votes
1 answer

a simple real-time-clock driver program not getting output

I wrote a driver program which will interact with RTC and gives the time. program is: outb(GET_HR, CMD_REG); hrs = inb(STAT_REG); outb(GET_MIN, CMD_REG); min = inb(STAT_REG); pr_info("time: hrs:min\n", hrs, min); Its working,…
0
votes
5 answers

Using a real time clock (RTC) on Arduino data logging shield

I'm trying to set and read the time on an Adafruit data-logging shield for Arduino but the open source code on the Adafruit website doesn't seem to be working as it returns several errors such as 'RTC_DS1307' does not name a type, and saying several…
user2772556
  • 1
  • 1
  • 1
0
votes
1 answer

Accessing RTC I2C chip connecting to FPGA through GPIO

I need to get data from a RTC device (stm41t83) through I2C. The device is directly connected to two pins of a GPIO. I tried to use the i2c-gpio driver with the piece of code below, #include #include #include…
jrm
  • 1
  • 3
0
votes
1 answer

Accessing RTC(DS1307) through I2C in ATmega16

I have written a code to access RTC(DS1307) through I2C using ATmega16 and I am using compiler AVR Studio 4. Code is given below:- #include #include #define F_CPU 1000000UL void…
Saad Rafey
  • 531
  • 2
  • 6
  • 18
-1
votes
1 answer

Why does EST JavaScript Date sets 12:00:00AM to 0:00:00 AM?

my JavaScript display time function works fine, but once it hits 12:00:00 AM EST, it changes to 0:00:00 AM. Essentially, I want it to show as 12:00:00 AM when the clock strikes midnight. I have included my code below so anyone can help? Thank…
iosvaldo
  • 23
  • 8
-1
votes
1 answer

Is there any way to fetch the google sheet (gsheet) data in flutter and display realtime updates whenever there is any change in google sheet itself?

I am developing an application where a list is displayed according to the user input. The list is loading and getting displayed when the application is loaded and whenever the user inputs the data through the text fields(in the app) and the cells…
-1
votes
1 answer

Adafruit data shield RTC giving errors

I have an Adafruit data shield on an Arduino Mega. This is a new shield and battery. The battery has 3V. The RTC is a PCF8523. Using the example code I get this: RTC is NOT running! 2165/165/165 (Monday) 165:165:85 since midnight 1/1/1970 =…
Snaresman
  • 11
  • 2
-1
votes
2 answers

What is the best way to synchronize a Timeline clock in JavaFX?

I am trying to display a synchronized clock in my Java FX GUI with the function given below. This also includes a timer function which runs if Timer=true private Calendar cal; private int minute; private int hour; private int second; private String…
Midhun Monachan
  • 588
  • 4
  • 12
-1
votes
1 answer

How do I add zeros before hours/minute/seconds when they are < 10 in Javascript?

I encountered a problem while trying to create a real-time-clock: I'm trying to show a zero before the number that represents minutes/hours/seconds when they are < 10, but the function doesn't work. May someone explain where I'm wrong and why…
Pier
  • 103
  • 1
  • 11
-1
votes
2 answers

How should I use setTimeout in this Javascript real-time-clock?

I was trying to do a real-time-clock but I'm having a problem, the setTimeout isn't working in fact the clock doesn't update itself. May I have your help please? This is the code that I wrote:
Pier
  • 103
  • 1
  • 11
1 2 3
13
14