G'day,
I am going to change my RTC to a DS3234 and have a question. Is it possible to get the int from the DS3234 to repeat a fix period of time so I can use it as a poll in my data-logger . E.g every 10 seconds. It appears from the data sheet you have an option to set the alarm rate (on page13) . but I'm not sure if that means it will raise an int once only when 10 seconds is reached in the time register, i.e. one a minute after 10 seconds has elapsed.
Tks
No, you can't set the alarm rate arbitrarily. It's only possible to set alarms for once a minute, once an hour, etc. because it's based on matching time fields.
What you can do, is configure the square wave output for once a second, and count up to 10 in software.
Tks, thought that would be the case, will have an int each second and let the sketch count up when new poll required.