DS1302

From bildr

Jump to: navigation, search


DS1302 DIP.jpg

The DS1302 is a Real-Time Clock made by Dallas Semiconductor. It is designed to run on very low power (300nA at 2.0V); allowing it to run off a small Battery or Super capacitor for a long period of time. It counts seconds, minutes, hours, date of the month, month, day of the week, and the year with leap year compensation valid up to 2100. Serial communication is used for a fast and easy three wire interface to a microcontroller.

Contents

Hooking it up

Pinout for DIP and SOIC
Pinout for DS1302
  • Pin - Name - Function
  • 1 - VCC2 - Primary Power Supply
  • 2 - X1 - 32.768kHz Crystal
  • 3 - X2 - 32.768kHz Crystal
  • 4 - GND - Ground
  • 5 - CE - Chip enable (to microcontroller)
  • 6 - I/O - Bidirectional Data (to microcontroller)
  • 7 - SCLK - Serial Clock
  • 8 - VCC1 - Backup Power Supply

The VCC1 pin is used for a battery or capacitor.



Required Additional Components

Code

Availability



This page is a Component on bildr. Components are pages about specific parts, and include connection details and code when available.

NOTE: All information contained within this article is pure opinion. Although this article is intended to help people, it may contain faulty or misleading information. This article is not to be considered professional opinion or advice, and is in no way a replacement for reading all safety/instructional documentation. Always remember to protect yourself when handling/using hazardous materials, as well as test new techniques before using them on projects/work intended to be handed in or used.

bildr and its contributers take NO responsibility for the information contained within.