【文章內(nèi)容簡介】
total of 31, each module configuration for an 8bit bytes, the mand control words C0H ~ FDH, in which oddnumbered for the read operation, even for the write operation。 the other for the sudden manner of RAM registers, this approach can be a onetime read and write all 31 bytes of RAM, a mand control word for the FEH (write), FFH (Reading). 3 DS1302 realtime display of time hardware and software DS1302 connection with the CPU needs three lines, namely, SCLK (7), I / O (6), RST (5). DS1302 connection with the CPU 3 In fact, in the debugger when the capacitor can not only add to a crystal. Only when the choice of crystal, different crystal, error as well. In addition, the circuit can be added to the above DS18B20, at the same time show the realtime temperature. CPU as long as the occupation of a line I can. LCD can be replaced with LED, can also use the letter Wei Jie Beijing Science and Technology Development Co., Ltd. produced 10 multipurpose 8 LCD Module LCM101, containing watchdog (WDT) / clock generator and the two frequency beep driver circuit and a builtdisplay RAM, any field can be displayed strokes, with a 34 line serial interface of any singlechip, IC interface. Low power consumption when the current show 2μA (typical value), powersaving mode is less than 1μA, working voltage is ~ , show clear. DS1302 realtime flow of time Singlebyte read and singlebyte write DS1302 data exchange with the microprocessor, the first microprocessor to the circuit by sending the mand byte, mand byte highest MSB (D7) must be a logic 1, if D7 = 0, then the prohibition of writing DS1302, that is writeprotected。 D6 = 0, the designated clock and data, D6 = 1, designated RAM data。 D5 ~ D1 designated a specific input or output register。 lowest LSB (D0) to logic 0, the specified write operation (input), D0 = 1, the designated time operations (output). Calendar clock in the DS1302 or RAM for data transmission, DS1302 must first send a mand byte. If a single byte transmission, 8bit mand byte sent after the end of the next two cycles of rising edge of SCLK input data byte, or 8 the next falling edge of SCLK cycle, the output data bytes. DS1302 registers associated with the RAM is divided into two types: one is a single RAM unit, a total of 31, each module configuration for an 8bit bytes, the mand 4 control words C0H ~ FDH, in which oddnumbered for the read operation, even for the write operation。 and then a class for the sudden manner of RAM register in this manner can be a onetime reading, writing all 31 bytes of RAM. Special note is