Interfacing DS1302 RTC Module with Arduino

preview_player
Показать описание
The DS1302 trickle-charge timekeeping chip module with battery backup contains a real-time clock/calendar and 31 bytes of static RAM. It communicates with a microprocessor via a simple serial interface. The real-time clock/calendar provides seconds,minutes, hours, day, date, month, and year information.
DS1302 is DALLAS company launched a trickle charge clock chip, containing a real-time clock/calendar and 31 bytes of static RAM, communicating through serial interface simple and single-chip microcomputer. The real-time clock/calendar circuit provides seconds, hours, days, weeks, months, years of information, a number of days in the month and leap year can automatically adjust. The clock operation instructions through the AM/PM decided to use 24 or 12-hour format.
Interfacing DS1302 RTC Module with Arduino
Between DS1302 and single-chip microcomputer can simply use synchronous serial communication method, only three lines:
(1) RST
(2) I/O reset the data line
(3) SCLK serial clock.

Clock /RAM read/write data to a byte character set or as many as 31-byte communication. DS1302 work power consumption is very low to keep the data and clock information when power is less than 1mW

Wiring method (to provide procedures, for example, can pick up any IO port, in the procedure to modify the port definitions :

VCC:+5V/3.3V
GND: GND
CLK: P02
DAT: P01
RST: P00
@MG Production @theworldnews @mgproduction

COPYRIGHT @MG Production © ®
COPYRIGHT @THE TECH LAB © ®
COPYRIGHT @🌎THE WORLD NEWS 🌎 © ®
Рекомендации по теме