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

Calling the system time in on the Windows 10 IOT on Raspberry PI3

My project takes pictures and I'm looking to set the image file names as the time and date they were taken. I've programmed the camera and set up the real time clock and they both work. However, I'm now struggling to link the two. Is there a method…
0
votes
1 answer

Set&Get system time on VxWorks RTP

I'm trying to set and get the system time on an intel architecture that runs VxWorks 7. I'm able to set the time using a DKM (Downloadable Kernel Module) with the code above. #include "vxWorks.h" #include "time.h" #include "stdio.h" #include…
unnamed
  • 840
  • 9
  • 26
  • 38
0
votes
2 answers

How do I fix a real-time-clock made in Javascript(I can't see it in the webpage)?

I was trying to create a clock following some tutorials on the internet but I'm having a problem. The clock should update itself every second and should show the current time. May I have your help please? This should be the…
Pier
  • 103
  • 1
  • 11
0
votes
1 answer

Can't get I2C to work with PIC32MX270F256B

I'm sorry to bother you guys but I've been spending hours messing with that PIC and I can't get anything from the I2C1 port ! I guess I must be doing something terribly wrong, or I forgot to switch something ON on the configuration bits but I just…
ricothebrol
  • 81
  • 12
0
votes
1 answer

How does the real time clock in Motherboard of a computer function in relation to the operating system

Out of curiosity, I did a few readings online about how a computer keeps track of time, without being powered (and not being connected to the internet). Of what I learnt, there is a special micro-processor having a crystal oscillator, keeping track…
G2G
  • 1
  • 1
0
votes
1 answer

How to find out if RTC wakealarm triggered a system wake up in Linux?

I have an application running on Linux where I want to wake up the system some seconds after it have been suspended-to-RAM. I have set the RTC to wake up the system in 20 seconds by writing +20 to /sys/class/rtc/rtc0/wakealarm on my Linux system and…
uniquenamehere
  • 1,869
  • 3
  • 31
  • 60
0
votes
1 answer

Getting uptime from RTC

I wanted to get uptime of the system from the RTC in seconds. The point is that while I can sum up values from the RTC time register (RTC_TR) it only works up to 24 hours and then overflows while one day is being added to RTC date register (RTC_DR).…
Paweł J
  • 33
  • 1
  • 10
0
votes
1 answer

Why/how is time set for a microcontroller platform under Segger JTAG ICE?

On a SAM4C microcontroller platform the time() function is called within a library. I found out, that this gives the right time (1496321612) when I start from debugger. However, when I make a hardware reset on the board, and the flashed firmware…
MichaelW
  • 1,328
  • 1
  • 15
  • 32
0
votes
1 answer

how interface both pcf8563 rtc and 24lc512 eeprom with 1K pullup resistor on sda and scl

i have been working on a code where both 24lc512 and pcf8563 are interfaced together. Here in the breakup board of pcf8563 there are two 1K pull-up resistor on SDA and SCL line so am planning on using the same resistors for eeprom. I had a code for…
Sreez..
  • 3
  • 5
0
votes
1 answer

RTC is not running

I tried to use the RTC DS1307 in my Arduino project, every time I ran my code I get this error: RTC is not running. The code should light up a LED every minutes:10sc and turn off every minutes:20s. This is the code that I wrote: #include…
Walid Sassi
  • 185
  • 2
  • 16
0
votes
1 answer

Unable to set the mode of the realtime clock to UTC

On my Debian (Jessie) Linux machine I would like to set the mode of the realtime clock to UTC as recommended by the timedatectl command (see below). But this doesn't seem to work properly. Execution of the timedatectl command which is part of the…
Bernd
  • 675
  • 2
  • 8
  • 30
0
votes
2 answers

Arduino RTC Module shows alternate information

So I tried to make an Arduino LCD Real Time Clock using the DS1302 RTC. It works and reads the time stored in the RTC properly, yet every other second, displays empty sets of data Here's a snapshot of the serial monitor and the sketch I can't seem…
0
votes
1 answer

DateTime, String comparison

I need to compare incoming strings with the date and time from the DS1307 RTC module. I am going to trigger an event if the certain time from the strings are reached. I've tried using convert to integer but it does not work. String now_int =…
0
votes
0 answers

embedded c - real time clock - counter control register

In rtc_callback() below, what is happening on the line RTC[QM_RTC_0].rtc_ccr |= RTC_CCR_INTERRUPT_ENABLE;? I've included the register map below also. In an RTC what is a counter control register and why would you "or in" interrupt enable? Or is…
logitech mouse
  • 91
  • 1
  • 10
0
votes
1 answer

Indicate AM/PM on LCD Display for RTC

So I have this Arduino program wherein the goal is to display the real time (based on my computer) on the LCD display. I have properly configured the time and date but the only remaining issue is I am not sure how to let the program properly…
AndyMarty
  • 43
  • 9