user70978: I need to send a pulse to an Arduino at every one hour. I don't need day, month, year etc. I just want a pulse from DS3231 at every 1 hour through the square wave pin.
https://github.com/NorthernWidget/DS3231
I have included this library but I can't anyhow understand how to generate an pulse at each hour using this library. Is it possible?
My requirement is simple. I need a pulse at my Arduino interrupt pin at each hour.
#include <DS3231.h>
#include <Wire.h>

void setup()
{
  Wire.begin();
  EICRA |= 0b00000011;
  EIMSK |= 0b00000001;
  sei();
 // No clue on how to setup DS3231 for getting a pulse at each hour
}
ISR(INT0_vect)
{
  // This function will be executed in each hour
}
void loop(){}


user70969: DS3231 address is 104. Instead of using that large complicated header, send simple frame.
For 1 sec pulse the frame will be :
S 208 A 14 A 0 P
N.B. Here address is 7 bit value 104. And a extra bit for R/W operation.
In the Arduino wire library,  you don’t need to include the R/W bit. So,just write 104.
For hourly Alam set the INT bit of control register and send simple frame like this.
Don't make things complicated using the header.

70978: <p>I need to send a pulse to an Arduino at <strong>every one hour</strong>. I don't need day, month, year etc. I just want a pulse from DS3231 at every 1 hour <strong>through the square wave pin</strong>.</p>
<p><a href="https://github.com/NorthernWidget/DS3231" rel="nofollow noreferrer">https://github.com/NorthernWidget/DS3231</a><br />
<strong>I have included this library</strong> but I can't anyhow understand how to generate an pulse at each hour using this library. Is it possible?</p>
<p>My requirement is simple. I need a pulse at my Arduino interrupt pin at each hour.</p>
<pre><code>#include &lt;DS3231.h&gt;
#include &lt;Wire.h&gt;

void setup()
{
  Wire.begin();
  EICRA |= 0b00000011;
  EIMSK |= 0b00000001;
  sei();
 // No clue on how to setup DS3231 for getting a pulse at each hour
}
ISR(INT0_vect)
{
  // This function will be executed in each hour
}
void loop(){}
</code></pre>
 70969: <p>DS3231 address is 104. Instead of using that large complicated header, send simple frame.</p>
<p>For 1 sec pulse the frame will be :
S 208 A 14 A 0 P</p>
<p>N.B. Here address is 7 bit value 104. And a extra bit for R/W operation.</p>
<p>In the Arduino wire library,  you don’t need to include the R/W bit. So,just write 104.
For hourly Alam set the INT bit of control register and send simple frame like this.
Don't make things complicated using the header.</p>
