Hello,
I'm Ramón and started working with the PCF2131, with a STM MCU. I'm facing an issue with the pulsed second signal, after setting a new time+date in the device.
The scheme i'm following is the next:
1. I set the device with no interrupts, only the seconds pulsed signal. The control registers are set like this:
** Control 1: 0b0000 0001, Control 2, 3, 4, 5: 0b0. -> Only using second pulsed signal.
** INTA/B Mask1/2: 0b0 -> All interrupts disabled
** WD Control: 0x20 -> Pulsed second signal, with no WD.
2. Then i read from the RTC and checks integrity. Then set the time of my MCU.
3. Periodically, the device is sincronyzed via SNTP. And here comes the problem.
When the new date is received, we stop the rtc, clear preescaler, set the new time (adding the delay of the operations) and start the RTC again. When this time is close to a seconds change (around 920-950ms), and set the time with the delay increased (this makes the new time set be around 50-80ms), the seconds pulsed signal is triggered, making the MCU increments a second ahead of the real time. We don't know why is this happening. Tried disabling, clearing and reenabling interrupts, but still the same. Any ideas why this is happening?
I attached the signal we measured with the I2C data we sent. The second one is a zoom on the datetime that is being set in this specific frame, where you can see the 100th of seconds are set to 4.

