/ Hardware

PCF8563 with NXP Cortex-M3, LPC1343 Keil

I was working on getting this RTC (PCF8563) to work with NXP's LPC1343 on I2C but I could not find any useful information. As I have done before, I was forced to read the whole datasheet and write the relevant code. Thank God it worked on the first try. So I thought it would be right if I shared this so that no one will have problems ever again. You need to have a working I2C code to add this one on top. I have however added the I2C library/driver in the Github repository.

The circuit is very simple as is the case with arduino



  • Connector J4 is for a backup battery

  • Do not forget to pull SDA and SCL lines high with 10k resistors, only once on the bus.

The code is available here on Github