DS1302 Real Time Clock

1. DS1302 Real Time Clock

DS1302 특징:

  • Real-Time Clock Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the Week, and Year with Leap-Year Compensation Valid Up to 2100
  • Serial I/O for Minimum Pin Count
  • 2.0V to 5.5V Full Operation
  • Uses Less than 300nA at 2.0V
  • Single-Byte or Multiple-Byte (Burst Mode) Data Transfer for Read or Write of Clock or RAM Data
  • Board Size: 44mm x 24mm

 

Time 라이브러리를 이용한 시간 데이터 사용은 아래와 같은 하드웨어를 지원합니다.

  • Time library for dates and times that can be used with and without external hardware
  • DCF77
  • DS1302
    • DS1302 Information and a basic sketch for the DS1302.
    • DS1302 RTC (23-wire interface with supercap backup) library
  • DS1306
  • DS1307
  • Use the CMax CMMR-6P WWVB Receiver with Arduino
  • Sleep and Watchdog functions for battery operated equipment Nightingale example
  • Interface to IBM AT RTC bq3287 and compatable with 8bit bi-directional bus code and description
  • Interface to a Maxim-IC DS3231 I2C chip
  • Guide for beginners to using the DS1302 RTC in the nuelectronics.com datalogging shield. Could help other users of the DS1302 also.
  • Library for the DS1340Z RTC with sample sketch to read and write time code. (Low voltage operation supported). For more information please check out the DS1340Z Inmojo Arduino Shield product page.
  • PCF8563 RTC Library with examples.
  • MicroCLK: A stand alone RTC controlled clock with LCD display
  • DS3234
    • The libary creates software interface to communicate with DS3234 RTC.
    • It allows for using any pins as MOSI, MISO, CLK and SS, for communication with the DS3234, thus conflicts with SD and Ethernet libraries are no longer a problem.
    • The libary is based on the example offered by Sparkfun.
    • Library offers reading date and time, setting it, and also as a bonus it allows to read the temperature.
  • PCF8563
  • R4571 (ETM21E-02)
    • R4571 Epson Toyocom R4571 RTC Library and documentation

 

2. 연결 방법

얼핏 비슷해 보이지만 I2C, SPI 와는 다른 Simple 3-wire interface 를 사용합니다.  디지털 핀 3개를 사용하며 임의로 변경할 수 있습니다.

MODULE  ->  ARDUINO
GND            -> GND
VCC             -> +5V
SCK             -> D4
I/O              -> D3
RST(CS)    -> D2

 

3. 소스 코드 (스케치) 

Arduino DS1302 RTC library written by Henning Karlsen (http://www.henningkarlsen.com/electronics/)

 

Post Author: TORTUGA

TORTUGA
궁금하신 점은 새로 개편한 홈페이지의 QnA 게시판을 이용해주세요!!!!!!! http://www.hardcopyworld.com/gnuboard5/bbs/board.php?bo_table=qna

댓글 남기기

이메일은 공개되지 않습니다.