Hi Mark,
Yes, I'm putting the processor into sleep mode. It usually goes down to about 0.1 uA without the RTC.
I'm using a 4K7 pull-up for both data and clock.
It's weird because it only happens (higher consumption) when certain call function of the PCF8563 is being used like for example:
rtc.setAlarm(minute, 99, 99, 99);
digitalWrite(vperiPin, LOW);
attachInterrupt(1, alarm, FALLING);
Then the MCU will be pushed to sleep soon after that. The vperiPin is used to power the I2C pull-up. So, I turn them off when not using them.
When I used functions like formatDate or formatTime, the current stays low.
If I were to comment out the setAlarm line, then the current goes low again. The current resulting from the attachInterrupt function is negligible.