Download Print this page

sparkfun RV-8803 Hook-Up Manual page 14

Real time clock module (qwiic)

Advertisement

bool getEVIEventCapture();
Countdown Interrupt
bool setCountdownTimerEnable(bool timerState);
bool setCountdownTimerFrequency(uint8_t countdownTimerFrequency);
4096 Hz, 60 Hz, 1 Hz and 1/60 Hz.
bool setCountdownTimerClockTicks(uint16_t clockTicks);
Example 4B - Countdown Interrupt overview in the next section of this guide for more information on calculating the number of clock ticks for your
timer.
bool getCountdownTimerEnable();
uint8_t getCountdownTimerFrequency();
uint16_t getCountdownTimerClockTicks();
Periodic Interrupt
bool setPeriodicTimeUpdateFrequency(bool timeUpdateFrequency);
1 Hz (one second) or 1/60 Hz (one minute).
bool getPeriodicTimeUpdateFrequency();
Alarm Interrupt
void setItemsToMatchForAlarm(bool minuteAlarm, bool hourAlarm, bool dateAlarm, bool weekdayOrDate);
values need to match to trigger an alarm. Can be set to minutes, hours, date or weekday+date. Setting the bit to 1 means the RTC will not look to
match that item for an alarm.
bool setAlarmMinute(uint8_t minute);
bool setAlarmHour(uint8_t hour);
bool setAlarmWeekday(uint8_t weekday);
bool setAlarmDate(uint8_t date);
uint8_t getAlarmMinute();
uint8_t getAlarmHour();
uint8_t getAlarmWeekday();
uint8_t getAlarmDate();
Configuring the Clock Out (
These two functions are for enabling and configuring the Clock Out pin. Use these with the
functions to fine tune your RTC. Refer to Example 6 - Fine Tuning in the next section of this guide for more information.
bool setClockOutTimerFrequency(uint8_t clockOutTimerFrequency);
Available frequencies are 1Hz, 1024Hz and 32,768 Hz.
uint8_t getClockOutTimerFrequency();
- Returns whether or not the EVI Event Capture function is enabled or disabled.
- Enables or disables the Periodic Countdown Timer interrupt function.
- Returns whether or not the Countdown Timer is enabled or disabled.
- Returns the frequency set for the Countdown Timer.
- Returns the number of clock ticks set for the Countdown Timer.
- Returns the time set for the Periodic Time Update interrupt frequency.
- Set the minute value for the RTC to match to trigger an alarm.
- Set the hour value for the RTC to match to trigger an alarm.
- Set the weekday value for the RTC to match to trigger an alarm.
- Set the date value for the RTC to match to trigger an alarm.
- Returns the minute value set for the RTC to match for an alarm.
- Returns the hour value set for the RTC to match for an alarm.
- Returns the weekday value set for the RTC to match for an alarm.
- Returns the date value set for the RTC to match for an alarm.
) pin
CLKOUT
- Returns the frequency set for the Clock Out.
- Sets the time for the Periodic Countdown Timer. Built in values are
- Sets the number of clock ticks to count for the Countdown Timer. Refer to the
- Sets the frequency of the Periodic Time Update interrupt function. Can be
setCalibrationOffset();
- Sets the frequency of the square wave output from the Clock Out pin.
- Function to select which time
and
getCalibrationOffset();

Advertisement

loading
Need help?

Need help?

Do you have a question about the RV-8803 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Bob-16281