The DS1302 is a trickle charge clock chip from DALLAS that includes a real-time clock/calendar and 31-byte static RAM that communicates with the microcontroller via a simple serial interface. Real-time clock/calendar circuit. Provides the second minute date and month. The information of the year, the number of days per month and the number of days of the leap year can be automatically adjusted. The clock operation can be determined by the AM/PM indication. The 24 or 12-hour format can be used. The DS1302 can communicate with the microcontroller in a simple synchronous serial mode. Three port lines are used: 1 RES reset, 2 I/O data lines, 3 SCLK serial clock. Clock/RAM read/write data is communicated in one byte or up to 31 bytes of character groups. DS1302 The power consumption is very low during operation, and the power and clock information are less than 1mW. The DS1302 is improved by the DS1202 and adds the following features. Dual power pins for mains and backup power supply Vcc1, programmable turbulence The charging power supply is equipped with seven bytes of memory. It is widely used in telephone fax portable instruments and battery-powered instrumentation.
Ds1302 pin diagram
DS1302 application circuit schematic P87LPC764 MCU select internal oscillation and internal reset circuit appendix data transmission and receiving module source program list
; CPU operating frequency does not exceed 20MHz
;
; P87LPC762/4 master sends the acceptance data program
This program is based on the Philips P87LPC764 microcontroller. Any 51-core or other suitable microcontroller can be used as the master I/O port (such as P1.2/P1.3/P1.4). The function of the device on the bus, the program uses DS1302
Read and write operation command byte in Command Transfer Bytes The data sent in ByteCnt is received in XmtDat in RcvDat
;
;P87LPC762/4 master bus sends the accept data program header file
; memory data definition
BitCnt data 30h ; data bit counter
ByteCnt data31h ; data byte counter
Command data 32h ; Command byte address
RcvDat DATA 40H; Receive data buffer
XmtDat DATA 50H ; send data buffer
;port bit definition
IO_DATA bit P1.3 ; data transfer bus
SCLK bit P1.4 ; clock control bus
RST bit P1.2; reset bus
;
Send data program
; Name: Send_Byte
Description: Send ByteCnt bytes to the controller DS1302
; command byte address in Command
; the number of bytes of data sent is the data sent in ByteCnt in the XmtDat buffer
;
Send_Byte:
CLR RST ; reset pin is low all data transfer terminated
NOP
CLRSCLK clear clock bus
NOP
AC parameter list:
Capacitor configuration table:
The design of the terminal blocks with clamping yoke connections which has contact pressure and has with self-locking function.Providing test type,knife Disconnect,fuse type terminal blocks etc.The cross-sectional is 0.5-35mm².
Marker Carrier For Terminal,Screw Connection End Stopper,Terminal Block End Stopper,Terminal Connection End Clip
Wonke Electric CO.,Ltd. , https://www.wkdq-electric.com