Table of Contents

INDEX

Addresses

TODO

sudo i2cget -y -a 1 0x51 0x00 b
0x08
sudo modprobe  -v rtc-pcf8563
# insmod /lib/modules/5.10.17+/kernel/drivers/rtc/rtc-pcf8563.ko 
# description:    Philips PCF8563/Epson RTC8564 RTC driver
sudo i2cdump -y -f 1 0x51     
No size specified (using byte-data access)
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 08 80 88 94 81 80 88 00 00 80 80 80 80 88 0b 22    ???????..??????"
(...)
f0: 08 80 89 94 81 80 88 00 00 80 80 80 80 88 0b 22    ???????..??????"

watch i2cget -y 1 0x51

echo pcf8563 0x51 | sudo tee  /sys/class/i2c-adapter/i2c-1/new_device
ls /dev/rtc* # /dev/rtc  /dev/rtc0
sudo hwclock -w && sudo hwclock -r # 2021-05-17 10:03:53.118761+01:00

echo "dtoverlay=i2c-rtc,pcf8563" | sudo tee -a /boot/config.txt
* https://www.willhughes.name/post/ds3231_raspi3/
* https://www.raspberrypi.org/forums/viewtopic.php?t=175202#

MisC

MORE

i2c.txt · Last modified: 2022/04/16 12:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki