Hilscher Community Forum
Realtime clock - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Realtime clock (/thread-641.html)



Realtime clock - tad - September-18th-2020

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,


RE: Realtime clock - Armin@netPI - September-18th-2020

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


RE: Realtime clock - tad - September-18th-2020

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,


RE: Realtime clock - Armin@netPI - September-18th-2020

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)


RE: Realtime clock - tad - September-18th-2020

Dear Armin,

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

Best regards,