PCF8563 Real-Time Clock (RTC)

PCF8563 Real-Time Clock (RTC) image

View on Amazon

Overview

The PCF8563 is a low-power real-time clock/calendar with I2C interface, offering timekeeping functions, programmable clock output, alarm and timer features, and operating over a wide voltage range, making it ideal for portable and battery-powered applications.

About PCF8563 Real-Time Clock (RTC)

The PCF8563 is a CMOS-based real-time clock (RTC) and calendar designed for ultra-low power applications. It provides complete timekeeping functions, including year, month, day, weekday, hours, minutes, and seconds, along with a century flag. Unlike the DS1307, the PCF8563 operates over a wider voltage range (1.0V – 5.5V) and offers lower power consumption, making it ideal for battery-powered applications.

Key Features

  • Low Power Consumption – Optimized for battery-operated devices.
  • Wide Voltage Range – Operates from 1.0V to 5.5V, broader than DS1307.
  • Programmable Clock Output – Provides flexible timing and clock generation.
  • Alarm & Timer Functions – Supports event triggering and scheduling.
  • Integrated Oscillator Capacitor – Reduces external component requirements.

With its power efficiency and advanced features, the PCF8563 is a great choice for portable, low-power, and precision timekeeping applications. 🚀

Where to Buy

Get Your PCF8563

PCF8563 Real-Time Clock (RTC)

Starting from

2.00$ per unit

Amazon com
Amazon.com Ships worldwide
Amazon de
Amazon.de Ships to EU
Aliexpress
AliExpress Best value option

💡 Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specs

PCF8563 Specifications

Complete technical specification details for PCF8563 Real-Time Clock (RTC)

📊 Technical Parameters

Timekeeping Range Seconds to Years (with Century Flag)
Operating Voltage 1.0V to 5.5V
Backup Current 0.25 µA typical at 3.0V
Interface I2C (up to 400 kHz)
Clock Output Frequencies 32.768 kHz, 1.024 kHz, 32 Hz, 1 Hz
Alarm Function Yes
Timer Function Yes
Operating Temperature -40°C to +85°C
Pin Configuration

PCF8563 Pinout

The PCF8563 has 8 pins including I²C interface, oscillator connections, and optional interrupt/clock outputs.

Visual Pinout Diagram

Pinout Diagram Primary
PCF8563 Real-Time Clock (RTC) pinout
8
Total Pins

Pin Types

Power
2

Quick Tips

[object

Object],[object Object],[object Object]

Requires

32.768 kHz crystal (not included on basic modules),Integrated oscillator capacitor (no external caps needed)

Alarm

and timer functions with interrupt capability,Century flag for year tracking

Pin Descriptions

Pin NameTypeDescriptionNotes
1 OSCI
Oscillator

Oscillator input. Connect to one terminal of 32.768 kHz crystal.

Crystal capacitor integrated internally.

2 OSCO
Oscillator

Oscillator output. Connect to other terminal of 32.768 kHz crystal.

3 INT
Interrupt

Interrupt output (open-drain, active low). Triggers on alarm or timer events.

Requires external pull-up resistor (~10kΩ).

4 VDD
Power

Power supply input (1.0V-5.5V). Wide voltage range for battery operation.

Ultra-low power consumption.

5 VSS
Power

Ground connection. Connect to system ground.

6 SDA
I2C

I²C Serial Data Line. Bidirectional data communication.

Connect to ESP32 GPIO 21 (default SDA).

7 SCL
I2C

I²C Serial Clock Line. Clock signal for I²C communication.

Connect to ESP32 GPIO 22 (default SCL).

8 CLKOUT
Clock Output

Programmable clock output. Configurable frequency for external devices.

Optional - can provide clock signal to other components.

Connection Guide

Wiring PCF8563 to ESP32

To interface the PCF8563 with an ESP32, connect VDD to 3.3V or 5V, VSS to ground, SDA to GPIO 21, SCL to GPIO 22, and attach a 32.768 kHz crystal between OSCI and OSCO.

Visual Wiring Diagram

Wiring Diagram Recommended
PCF8563 Real-Time Clock (RTC) wiring with ESP32
7
Connections

Connection Status

Required
5
Optional
2

Protocol

I2C

Pin Connections

PCF8563 PinConnectionESP32 PinDescription
1 VDD Required
3.3V

Power supply. Use 3.3V for battery-powered applications.

2 VSS Required
GND

Ground connection.

3 SDA Required
GPIO 21

I²C data line. Requires pull-up resistor (4.7kΩ typical).

4 SCL Required
GPIO 22

I²C clock line. Requires pull-up resistor (4.7kΩ typical).

5 OSCI/OSCO Required
32.768 kHz Crystal

Connect 32.768 kHz crystal between OSCI and OSCO pins.

6 INT Optional
Optional GPIO

Interrupt output for alarm/timer events. Requires 10kΩ pull-up.

7 CLKOUT Optional
Optional

Programmable clock output for external devices.

[object

Object]

Add

4.7kΩ pull-up resistors on SDA and SCL lines

32.768

kHz crystal required for accurate timekeeping

[object

Object]

INT

pin is open-drain - requires external pull-up resistor (~10kΩ)

Set

initial time after first power-on or battery replacement

Lower

power consumption than DS1307 - ideal for portable projects

Some

modules include crystal and battery holder

Help & Support

PCF8563 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

PCF8563 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up PCF8563

The ESP32 PCF8563 Real-Time Clock (RTC) is a powerful RTC sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

Best Practices

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Safety First

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the PCF8563 into your ESP32 project and bring your ideas to life!