Skip to main content

wokwi-ds1307 Reference

RTC (Real Time Clock) module with I2C interface and 56 bytes of NV SRAM.

Pin names

NameDescription
GNDGround
5VPositive voltage (5V)
SDAI2C data line
SCLI2C clock line
SQWSquare wave output. Not available in the simulation.

The I2C address of the DS1307 is 0x68.

Simulation Behavior

The simulated DS1307 is automatically initialized to the current system time when starting the simulation. It then keeps counting the time.

The code running in the simulation can update the date/time of the DS1307, and the DS1307 will keep track of the update time.

Simulator examples