Hi,
I'm configuring the PCF85263 RTC and encountering an issue where all registers return 0x00 when I attempt to read them via I2C. Here’s my setup and the steps I’ve followed:
HW setup:
- PCF85263 rtc connected to a Quectel BG95-m3 module.
- pull-up resistors are present
Issue:
- I have tried to write different commands to different registers but when verifying the registers state they all return as 0x00
Steps I have taken:
- I have confirmed that the rtc gets 1.8v on VDD, SDA and SCL using a multimeter.
- Tested on two separate devices.
My code is in the attached file(set_alarm function gets called).
Is there some step I'm missing in the configuration?
Thanks in advance.
Hi Oscar,
If you have a logic analyzer or an oscilloscope, could you please share some screenshots to check what is going on the bus?
It should also help us to verify each I2C operation's acknowledgment. If a command is not acknowledged, subsequent operations could fail.
Looking at your code, the I2C device address being used is correct. Just verify if the I2C library expects this 7-bit address (0x51) and automatically handles the read/write bit.
BRs, Tomas