---
title: "P2 RTC Add-on Board Demo"
description: "[Quick Byte: Real-time Clock](https://www.youtube.com/embed/mc14QBdn-Kg?feature=oembed) ##### Description This Quick Byte shows how to use the Parallax P2 RTC (Real Time Clock and Calendar) module in your projects. The example code includes SPIN2 code drivers that implement calibration, battery control, date &…"
url: "https://obex.parallax.com/docs/quick-bytes/propeller-2/p2-rtc-add-on-board-demo/"
updated: "2026-09-29"
category: Propeller 2
---

# P2 RTC Add-on Board Demo

[Quick Byte: Real-time Clock](https://www.youtube.com/embed/mc14QBdn-Kg?feature=oembed)

##### Description

This Quick Byte shows how to use the Parallax P2 RTC (Real Time Clock and Calendar) module in your projects. The example code includes SPIN2 code drivers that implement calibration, battery control, date & time setting, weekday & leap-year calculation and a number of convenient display formatting features.

The P2 RTC module adds reliable and accurate time functions to your project, and is critical for many products including those with user interfaces, logging, event & timer based features and file systems.

Especially important for battery-powered and offline systems, the P2 RTC module will keep accurate time with very low power requirements; less than 200 µA during serial communications and down to 150 nA whilst idle and sleeping

For help please feel free to ask your questions here, or for a wider audience of helpers at our [https://forums.parallax.com](https://forums.parallax.com/).

##### Hardware Connections

Follow the video above or these pictures to wire up the hardware listed under Parts Used (below).

![](/qbi/P2 RTC Add-on Board Demo - Parallax_files/RTC_Demo_Hardware_1-768x432.jpg)![](/qbi/P2 RTC Add-on Board Demo - Parallax_files/RTC_Demo_Hardware_2-768x432.jpg)![](/qbi/P2 RTC Add-on Board Demo - Parallax_files/RTC_Demo_Hardware_3-768x432.jpg)

##### Parts Used

- [P2 RTC Add-on Board](https://www.parallax.com/product/p2-rtc-add-on-board/)
- [P2 Edge Module](https://www.parallax.com/product/p2-edge-module/)
- [P2 Edge Mini Breakout Board](https://www.parallax.com/product/p2-edge-mini-breakout-board/)
- [USB Mains Adapter, 18W, 5V, 3A](https://www.parallax.com/product/usb-mains-adapter-18w-5v-3a/)
- [Prop Plug Rev E](https://www.parallax.com/product/prop-plug/)
- [USB A to Micro B Cable](https://www.parallax.com/product/raspberry-pi-15-3w-usb-c-power-supply/)

##### Source Code

- [P2 RTC Add-on Board Demo Code](/qbi/downloads/64013_RTC_Example-Archive-Date-2022.12.20-Time-14.09.zip)

##### Programming Language

- [Spin 2](https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/)
- [PASM2](https://docs.google.com/spreadsheets/d/1_vJk-Ad569UMwgXTKTdfJkHYHpc1rZwxB-DcIiAZNdk/)

##### Tools and Operating System

- [Propeller Tool for Windows](https://www.parallax.com/package/propeller-tool-software-for-windows-spin-assembly-2/)
- [FlexProp for Windows, Mac and Linux](https://www.patreon.com/totalspectrum)

##### Additional Resources

- [Propeller 2 Spin Documentation](https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/edit)

[Propeller 2 Live Forum Video: Simple Analog Input](https://youtu.be/K-pGbQD_biE?si=qYdlGd9TylJZEm9T)

##### Document Author

- Michael Mulholland

##### Source Code Author

- Michael Mulholland
