The functions of each pin are: <br>1 pin: VCC2 is the main power pin. <br>8 pins: VCC1 standby power pin. <br>Remark: DS1302 is powered by the greater of Vcc1 or Vcc2. When Vcc2 is greater than Vcc1 + 0.2V, Vcc2 supplies power to DS1302. When Vcc2 is less than Vcc1, DS1302 is powered by Vcc1. Because this design does not refer to the backup power supply, only the 1 pin, the main power pin, is referenced. <br>2 and 3 pins: X1 and X2 are connected to external crystal pins. (External 32.768kHz crystal oscillator) <br>4 pins: GND is the ground pin. <br>5 pins: CE / RST is reset / chip select line. Start all data transfer by driving the RST input high. <br>1. RST turns on the control logic, allowing the address / command sequence to be sent to the shift register; <br>2. RST provides a means of terminating the transmission of single-byte or multi-byte data. <br>6 pins: I / O is the data input and output port. At the next rising edge of the SCLK clock after the control instruction word is input, data is written to the DS1302, and data input starts from the low bit, which is bit 0. Similarly, the DS1302 data is read at the falling edge of the next SCLK pulse immediately following the 8-bit control instruction word, from the low bit 0 to the high bit 7 when reading the data. <br>7 pin: SCLK is the serial clock, input.
正在翻译中..