• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Realtime clock
#1
Dear Armin,

How can I use the built-in real-time clock when using the software environment of a commercial Raspberry Pi (without using the OS/Docker environment of netPI)?
And, I would like to know accuracy of the realtime clock, please.

Thank you very much for your support.
Best regards,
  Reply
#2
The commercial Raspberry Pi does not have a real-time clock. It just has a software clock as far as I know.

This is why on commercial Raspberry Pi an NTP time server located typcially on the internet is needed. This server is asked during boot times by the commercial Raspberry Pi to get the current time. Also it is possible to configure the NTP service on commercial Raspberry Pi to ask for the clock periodically in case the device is not swicthed off and running forever to synchronize from time to time the NTP server.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
Dear Armin,

Thank you very much for your quick response.
I mean netPI has a maintenance free hardware real-time clock.
I would like to utilize this clock even a Raspbian/Ubuntu is directly installed on a microSD card of netPI.
In other word, I'd like to know how to utilize the realtime clock with a bare-metal mode of netPI.

Thank you very much for your support.
Best regards,
  Reply
#4
Ah, now I understand your question.

If you look to this thread here https://forum.hilscher.com/thread-253.html you find the schematics of netPI.

On sheet 4 of this document you find a chip named "PCF8563". This is the realtime clock chip. It is connected to I2C-1 bus of netPI. Also you find printed the I2C address of this chip which is "1010001'b7". So all you need to do is to program this chip over I2C as we do it on netPI with netPI OS.

Find appended the data sheet of this chip.


.pdf   PCF8563.pdf (Size: 483.84 KB / Downloads: 2)
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#5
Dear Armin,

Thank you very much for your information.
I appreciate it.

Best regards,
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  IP Realtime Ethernet michu252 7 4,746 August-21st-2018, 10:41 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)