时间:2009-04-21 10:28
人气:
作者:admin
| Pin Number | MC146818A | DS12885 | DS1685 | DS12887 | DS1687 | |
| 24-Pin DIP | 24-Pin PLCC | |||||
| 1 | 2 | MOT | MOT | Active-Low PWR | MOT | Active-Low PWR |
| 2 | 3 | OSC1 | X1 | X1 | NC | NC |
| 3 | 4 | OSC2 | X2 | X2 | NC | NC |
| 4 | 5 | AD0 | AD0 | AD0 | AD0 | AD0 |
| 5 | 6 | AD1 | AD1 | AD1 | AD1 | AD1 |
| 6 | 7 | AD2 | AD2 | AD2 | AD2 | AD2 |
| 7 | 8 | AD3 | AD3 | AD3 | AD3 | AD3 |
| 9 | 10 | AD4 | AD4 | AD4 | AD4 | AD4 |
| 10 | 11 | AD5 | AD5 | AD5 | AD5 | AD5 |
| 10 | 12 | AD6 | AD6 | AD6 | AD6 | AD6 |
| 11 | 14 | AD7 | AD7 | AD7 | AD7 | AD7 |
| 12 | 15 | VSS | GND | GND | GND | GND |
| 13 | 16 | Active-Low CS | Active-Low CS | Active-Low CS | Active-Low CS | Active-Low CS |
| 14 | 17 | AS | AS | ALE | AS | ALE |
| 15 | 19 | R/Active-Low W | R/Active-Low W | R/Active-Low W | R/Active-Low W | R/Active-Low W |
| 16 | 20 | Active-Low STBY | Batt GND | Batt GND | NC | NC |
| 17 | 21 | DS | DS | Active-Low RD | DS | /RD |
| 18 | 22 | Active-Low RESET | Active-Low RESET | Active-Low KS | Active-Low RESET | Active-Low KS |
| 19 | 23 | Active-Low IRQ | Active-Low IRQ | Active-Low IRQ | Active-Low IRQ | Active-Low IRQ |
| 20 | 24 | CKFS | VBAT | VBAT | NC | NC |
| 21 | 25 | CKOUT | Active-Low RCLR | Active-Low RCLR | NC | Active-Low RCLR |
| 22 | 26 | PS | NC | VBAUX | NC | VBAUX |
| 23 | 27 | SQW | SQW | SQW | SQW | SQW |
| 24 | 28 | VDD | VCC | VCC | VCC | VCC |
| Pin # | ||||
| DIP | PLCC | MC146818A | DS12885 | DS12887 |
| 1 | 2 | MOT | N/A | N/A |
| 2 | 3 | OSC1 | The MC146818A required external components along with crystals of 32.768 kHz, 1.048576 MHz, or 4.194304 MHz. The DS12885 is designed to work with a 32.768 kHz crystal connected directly to pins 2 and 3. | The DS12887 does not require an external crystal, so any components on the board designed to connect a crystal to this pin may be removed. The MC146818A would accept input frequencies of 32.768 kHz, 1.048576 MHz, or 4.194304 MHz. The DS12887 includes a 32.768 kHz crystal in the module. |
| 3 | 4 | OSC2 | ||
| 4 | 5 | AD0 | N/A | N/A |
| 5 | 6 | AD1 | N/A | N/A |
| 6 | 7 | AD2 | N/A | N/A |
| 7 | 8 | AD3 | N/A | N/A |
| 8 | 9 | AD4 | N/A | N/A |
| 9 | 10 | AD5 | N/A | N/A |
| 10 | 12 | AD6 | When accessing the clock memory, AD6 on the DS12885/87 needs to be low during the address strobe. It was a "don't care" on the MC146818A. | |
| 11 | 14 | AD7 | N/A | N/A |
| 12 | 15 | VSS | N/A | N/A |
| 13 | 16 | Active-Low CS | N/A | N/A |
| 14 | 17 | AS | N/A | N/A |
| 15 | 19 | R/Active-Low W | N/A | N/A |
| 16 | 20 | Active-Low STBY | The negative side of the backup battery needs to be connected to pin 16 of the DS12885. The DS12885 handles the switching to battery power internally and will disable reads and writes while in back backup mode. | This pin is a no connect on the DS12887. The DS12887 switches to an internal battery when VCC is not present and automatically disables reads and writes. |
| 17 | 21 | DS | N/A | N/A |
| 18 | 22 | Active-Low RESET | N/A | N/A |
| 19 | 23 | Active-Low IRQ | N/A | N/A |
| 20 | 24 | CKFS | Pin 20 needs to be connected to the positive side of the backup battery. | No Connect |
| 21 | 25 | CKOUT | The user RAM will be cleared if this pin is taken low. There is an internal pull-up resistor, so this pin should be left floating and not tied high. | This pin is a no connect on the DS12887. On the DS12887A, the RCLR pin is brought out and should be treated the same as on the DS12885. |
| 22 | 26 | PS | The MC146818A used this pin to sense the battery voltage and set the VRT bit. This function is handled internally in the DS12885/87, and the pin is a no connect. | |
| 23 | 27 | SQW | N/A | N/A |
| 24 | 28 | VDD | Any on board backup battery that was connected to pin 24 should be removed. The DS12885 is designed to have the backup battery connected to pins 16 and 20. The DS12887 has the backup battery included in the module. | |
| Pin # | ||||
| DIP | PLCC | MC146818A | DS1685 | DS1687 |
| 1 | 2 | MOT | The Active-Low PWR pin on the DS1685/87 is an output designed to support system power switching as a result of a date/time alarm (wake up) or a key closure (kickstart). | |
| 2 | 3 | OSC1 | The MC146818A required external components along with crystals of 32.768 kHz, 1.048576 MHz, or 4.194304 MHz. The DS1685 is designed to work with a 32.768 kHz crystal connected directly to pins 2 and 3. | The DS1687 does not require an external crystal, so any components on the board designed to connect a crystal to this pin may be removed. The MC146818A would accept input frequencies of 32.768 kHz, 1.048576 MHz, or 4.194304 MHz. The DS1687 includes a 32.768 kHz crystal in the module. |
| 3 | 4 | OSC2 | ||
| 4 | 5 | AD0 | N/A | N/A |
| 5 | 6 | AD1 | N/A | N/A |
| 6 | 7 | AD2 | N/A | N/A |
| 7 | 8 | AD3 | N/A | N/A |
| 8 | 9 | AD4 | N/A | N/A |
| 9 | 10 | AD5 | N/A | N/A |
| 10 | 12 | AD6 | When accessing the clock memory, AD6 on the DS1685/87 needs to be low during the address strobe. It was a "don't care" on the MC146818A. | |
| 11 | 14 | AD7 | N/A | N/A |
| 12 | 15 | VSS | N/A | N/A |
| 13 | 16 | Active-Low CS | N/A | N/A |
| 14 | 17 | AS | N/A | N/A |
| 15 | 19 | R/Active-Low W | N/A | N/A |
| 16 | 20 | Active-Low STBY | The negative side of the backup battery needs to be connected to pin 16 of the DS1685. The DS1685 handles the switching to battery power internally and will disable reads and writes while in back backup mode. | This pin is a no connect on the DS1687. The DS1687 switches to an internal battery when VCC is not present and automatically disables reads and writes. |
| 17 | 21 | DS | N/A | N/A |
| 18 | 22 | Active-Low RESET | N/A | N/A |
| 19 | 23 | IRQ | N/A | N/A |
| 20 | 24 | CKFS | This pin needs to be connected to the positive side of the backup battery. | No Connect |
| 21 | 25 | CKOUT | The user RAM will be cleared if this pin is taken low. There is an internal pull-up resistor, so this pin should be left floating and not tied high. | |
| 22 | 26 | PS | The MC146818A used this pin to sense the battery voltage and set the VRT bit. This function is handled internally in the DS1685/87. This pin is the positive side for an auxiliary battery required for the kickstart and wake-up features. | |
| 23 | 27 | SQW | N/A | N/A |
| 24 | 28 | VDD | Any on board backup battery that was connected to VDD should be removed. The DS1685 is designed to have the backup battery connected to pins 16 and 20 in the DIP and pins 20 and 24 in the PLCC. The DS1687 has the backup battery included in the module. | |
| DS12885/87 and DS1685/87 | ||||
| Register A | MSB | 7 | UIP | N/A |
| 6 | DV2 | N/A | ||
| 5 | DV1 | 1-Osc On; 0-Osc off | ||
| 4 | DV0 | Must be 0 for timekeeping | ||
| 3 | RS3 | N/A | ||
| 2 | RS2 | N/A | ||
| 1 | RS1 | N/A | ||
| LSB | 0 | RS0 | N/A | |
| Register B | MSB | 7 | SET | N/A |
| 6 | PIE | N/A | ||
| 5 | AIE | N/A | ||
| 4 | UIE | N/A | ||
| 3 | SQWE | N/A | ||
| 2 | DM | N/A | ||
| 1 | 24/12 | N/A | ||
| LSB | 0 | DSE | N/A | |
| Register C | MSB | 7 | IRQF | N/A |
| 6 | PF | N/A | ||
| 5 | AF | N/A | ||
| 4 | UF | N/A | ||
| 3 | 0 | N/A | ||
| 2 | 0 | N/A | ||
| 1 | 0 | N/A | ||
| LSB | 0 | 0 | N/A | |
| Register D | MSB | 7 | VRT | This bit is read only and should always be 1 to indicate a good internal battery voltage. |
| 6 | 0 | N/A | ||
| 5 | 0 | N/A | ||
| 4 | 0 | N/A | ||
| 3 | 0 | N/A | ||
| 2 | 0 | N/A | ||
| 1 | 0 | N/A | ||
| LSB | 0 | 0 | N/A | |