Hello Dan,
I had started a project using the PCF8563 a bout a year ago (not yet finished).
Without deeper analysing your code, I noticed, that you are using different addresses for read and write.
PBP handles this for you, read/write always to the address $A2.
You could also shorten your code by using multiple reads/writes like
I2CRead data_pin,clk_pin,rtc_read,reg_seconds,[seconds, minutes, hours...]
Regards,
Ingo
Bookmarks