Arduino / PCF8563 Real Time Clock Testing

If you are having trouble getting the PCF8563 real time clock (RTC) working with Arduino, then this series of 3 tests that check that the PCF8563 is working as well as that the I2C interface is working may help.

The tests first check that the oscillator in the PCF8563 is operational. This is followed by a write test and read test on the I2C bus.