Details
BUY DS1647-120+ https://www.utsource.net/itm/p/12426922.html
Parameter | Description | Value |
---|---|---|
Device Type | High-Precision Real-Time Clock/Calendar with RAM and Watchdog Timer | |
Operating Voltage (Vcc) | Supply voltage range | 2.25V to 5.5V |
Current Consumption | Active mode current at 3.3V, 25°C | 300nA |
Temperature Range | Operating temperature range | -40°C to +85°C |
Clock Accuracy | ±2 minutes per year at 25°C | |
RAM Size | Non-volatile RAM size | 128 bytes |
Watchdog Timer | Programmable watchdog timer | Yes |
Package Type | Package options | SOIC-16, TSSOP-16 |
Communication Interface | I2C interface | Yes |
Oscillator Frequency | Internal oscillator frequency | 32.768 kHz |
Instructions for Use
Power Supply:
- Connect Vcc to the supply voltage (2.25V to 5.5V) and GND to ground.
- Ensure a stable power supply to avoid any data corruption.
I2C Communication:
- Connect SDA (data line) and SCL (clock line) to the appropriate I2C pins on your microcontroller.
- Use pull-up resistors (typically 4.7kΩ) on both SDA and SCL lines to ensure proper communication.
Initialization:
- After powering the device, initialize the I2C communication by sending the start condition followed by the device address (0x68).
- Set the clock and calendar registers to the desired initial values.
Reading Time and Date:
- To read the current time and date, send a start condition, device address, and register address (0x00 for seconds).
- Read the subsequent registers for minutes, hours, day, date, month, and year.
Writing Time and Date:
- To set the time and date, send a start condition, device address, and register address.
- Write the desired values to the respective registers.
Using the Watchdog Timer:
- Enable the watchdog timer by writing to the control register (0x0E).
- Set the timeout period by writing to the watchdog timer register (0x0F).
RAM Access:
- Access the non-volatile RAM by writing to or reading from the RAM address range (0x10 to 0x8F).
Power-Down Mode:
- To enter power-down mode, write to the control register to disable the oscillator.
- The device will consume minimal power in this mode.
Reset:
- A reset can be performed by writing to the reset register (0x0D).
Error Handling:
- Check for NACK conditions during I2C transactions to ensure successful communication.
- Implement error handling routines to manage any communication failures.
For detailed information, refer to the DS1647-120+ datasheet provided by the manufacturer.
(For reference only)View more about DS1647-120+ on main site