Adafruit PCF8523 Real Time Clock

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
RobMohr
 
Posts: 35
Joined: Tue Jun 12, 2018 8:20 pm

Adafruit PCF8523 Real Time Clock

Post by RobMohr »

I wish to use the Adafruit PCF8523 module to generate an interrupt that I will be using to wake up the Arduino Due. None of the examples included in the Adafruit RTClib library go over usage of the SQW pin to perform any functionally. It is unclear from the API (https://adafruit.github.io/RTClib/html/ ... ee683f0e63) whether this is supported or not.

There are enum parameters defined for setting the square wave output to fixed values:

Pcf8523SqwPinMode {
PCF8523_OFF = 7, PCF8523_SquareWave1HZ = 6, PCF8523_SquareWave32HZ = 5, PCF8523_SquareWave1kHz = 4,
PCF8523_SquareWave4kHz = 3, PCF8523_SquareWave8kHz = 2, PCF8523_SquareWave16kHz = 1, PCF8523_SquareWave32kHz = 0
}

But there is no mention in the API of setting alarm values based on either an interval, time of day, date, etc. Could someone comment on the capability of this breakout board to support use of the SQW pin specifically for generating an interrupt at a given time interval, such as 10 minutes?

If possible, and example sketch would be great.

P.S. I assume that SQL will need to be pulled high through a 10K resistor in order to interrupt on the Due digital pin 2?

Thanks for any advice!

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”