Introduction to the real-time clock module DS1302

The DS1302 is a low-power real-time clock chip with a fine current charging capability introduced by DALLAS, USA. It can time the year, month, day, week, hour, minute and second, and has many functions such as leap year compensation.

How the DS1302 works

The DS1302 operates from 2.0V to 5.5V. The three-wire interface is used for synchronous communication with the CPU, and multiple bytes of clock signals or RAM data can be transmitted at one time in a burst mode. The DS1302 has a 31&TImes;8 RAM register for temporarily storing data. The DS1302 is an upgraded version of the DS1202 that is compatible with the DS1202, but adds dual-supply pins for the mains/backup power supply and provides the ability to charge the backup power supply with a fine current.

DS1302 main performance indicators

The DS1302 real-time clock chip is widely used in products such as telephone, fax, and portable instruments. His main performance indicators are as follows:

1, DS1302 is a real-time clock chip, can provide seconds, minutes, hours, date, month, year and other information, and also has the ability to automatically adjust the soft year, you can configure AM / PM to determine whether to use 24-hour format or 12 hours format.

2. Has 31 bytes of data storage RAM.

3, serial I / O communication mode, relatively parallel to save the use of IO port.

4, DS1302's working voltage is relatively wide, probably 2.0V ~ 5.5V can work normally. It is powered by dual power supply. When the main power supply is 0.2V higher than the standby power supply, it is powered by the main power supply. Otherwise, the backup power supply is used, which is usually a button battery.

5, DS1302 clock chip power consumption is generally very low, it works at a voltage of 2.0V, the operating current is less than 300nA.

6, DS1302 has 8 pins, there are two kinds of package, one is DIP-8 package, chip width (without pins) is 300mil, one is SOP-8 package, there are two widths, one is 150mil, one is 208mil.

DS1302 pin and definition

Introduction to the real-time clock module DS1302

DS1302 pin

Introduction to the real-time clock module DS1302

DS1302 pin definition

DS1302 timing diagram analysis

Introduction to the real-time clock module DS1302

This is a timing diagram for single-byte writes. It can be seen that the enable is first pulled high, the enable is selected, and then one byte is written on the rising edge of the clock.

The DS1302 reads and writes at least two bytes during read and write operations. The first is the control byte, which is a command indicating whether it is a read or write operation, and the second data that needs to be read or written.

For single-byte writes, CE can only be asserted high when SCLK is low, so SCLK is initially low, CE is set high, then the byte to be written is sent to the IO port, then the SCLK is toggled. Write data at the falling edge of SCLK

Introduction to the real-time clock module DS1302

Related information download recommended >>>>>>>>DS1302 real-time clock module

Related information download recommended >>>>>>>>DS1302 real-time clock module schematic

Flexible Group Charging

China leading manufacturers and suppliers of Level 2 Charger,Ev Charging Stations, and we are specialize in Charging Station,Flexible Group Charging Station, etc.

Level 2 Charger,Ev Charging Stations,Charging Station,Flexible Group Charging Station

Shenzhen Hongjiali New Energy Co., Ltd. , https://www.hjlcharger.com

This entry was posted in on