Maxim Integrated DS1307 Element

The DS1307 element is used to provide a real time clock in 24-hour time. This element is for using the Maxim Integrated DS1307 real time clock chip.

The DS1307 is a sensor element that can be imported into the Element Toolbox through the Add Element Add Element button located in the toolbox from the Embedded tab.

Properties

The following properties can be changed for the DS1307 element:

Name

The name of the element.

I2C Driver Instance

The I2C bus used to communicate with the sensor.

I2C Address

The I2C address the element sends data to.

Start Clock on Setup

The state of the clock initializing when the project runs: disabled or enabled.

Square Wave Frequency

The square wave (SQW) pin output frequency of the clock. This element includes the following frequency options:

  • 1Hz
  • 4.096kHz
  • 8.192kHz
  • 32.768kHz
  • Constant Low
  • Constant High

Triggers

The following triggers are available to execute events from within the DS1307 element:

Triggered

Execute an event when the source element connected to the HTS221 triggers.

Clock Started

Execute an event when the clock starts.

Clock Stopped

Execute an event when the clock stops.

Clock Reset

Execute an event when the clock is reset.

DateTime Set

Execute an event when the date and time are set.

DateTime Retrieved

Execute an event when the date and time are returned.

Abilities

The following abilities are available for the DS1307 element when its source element triggers:

Trigger

Trigger the element(s) that follow the DS1307 element.

Start Clock

Start the clock.

Stop Clock

Stop the clock.

Reset Clock

Reset the clock. This returns the clock to 01/01/00 01 00:00:00 (MM/DD/YY DOW HH:MM:SS).

Set DateTime

Set the date and time as an ISO8601 string.

Get DateTime

Return the date and time as an ISO8601 string.