sparkfun RV-1805 Hook-Up Manual page 8

Qwiic real time clock module
Table of Contents

Advertisement

bool setToCompilerTime();
bool setTime(uint8_t hund, uint8_t sec, uint8_t min, uint8_t hour, uint8_t date, uint8_t month, uin
— Set's the time registers of the RTC to a chosen time using individual variables.
bool setTime(uint8_t * time, uint8_t len)
using an array of times in the following order
{Hundredths, Seconds, Minutes, Hours, Date, Month, Year, Day}
the length of the time array, for this function to set the time properly.
bool setHundredths(uint8_t value);
bool setSeconds(uint8_t value);
bool setMinutes(uint8_t value);
bool setHours(uint8_t value);
bool setWeekday(uint8_t value);
bool setDate(uint8_t value);
bool setMonth(uint8_t value);
bool setYear(uint8_t value);
void set12Hour();
void set24Hour();
void enableTrickleCharge(uint8_t diode = DIODE_0_3V, uint8_t rOut = ROUT_3K);
internal diode and resistor to enable the trickle charging circuit to charge the supercapacitor. The default
values are the fastest for charging the capacitor, although other globally scoped variables (listed below) can
be passed to change the value of the diode and resistor using in the charging circuit.
DIODE_0_3V
DIODE_0_6V
DIODE_DISABLE
— 3 kΩ Resistor
ROUT_3K
— 6 kΩ Resistor
ROUT_6K
ROUT_11K
ROUT_DISABLE
void disableTrickleCharge();
void enableLowPower();
the supercapacitor or battery.
Interrupt Functionality
void enableInterrupt(uint8_t source);
which can be any of the following.
INTERRUPT_EIE
INTERRUPT_AIE
INTERRUPT_TIE
INTERRUPT_BLIE
void disableInterrupt(uint8_t source);
see above for possible values of
void clearInterrupts();
bool setAlarm(uint8_t sec, uint8_t min, uint8_t hour, uint8_t date, uint8_t month);
alarm to a chosen time using individual variables.
bool setAlarm(uint8_t * time, uint8_t len);
times.
uint8_t len
enableAlarmInterrupt();
— Set's the RTC to the time on the compiler.
— Sets the hundredths register to
— Sets the seconds register to
— Sets the minutes register to
— Sets the hours register to
— Sets the weekday register to
— Sets the date register to
— Sets the month register to
— Sets the year register to
— Sets the RTC to 12 hour mode.
— Sets the RTC to 24 hour mode.
— 0.3V Diode
— 0.6V Diode
— Disconnects diode, disables trickle charging circuit
— 11 kΩ Resistor
— Disconnects resistor, disables the trickle charging circuit.
— Disables the trickle charging circuit.
— Enables switching to the low power RC oscillator when the RTC is powered by
— External Interrupt
— Alarm Interrupt
— Timer Interrupt
— Battery Interrupt
source
— Clears all interrupt sources.
must be 7, the length of the time array, for this function to set the alarm properly.
— Attaches the interrupt pin to the alarm function.
— Set's the time registers of the RTC to a chosen time
value
value
— Enables a given interrupt based on the value of
— Disables a given interrupt based on the value of
.
— Sets the alarm to a chosen time using an array of
. Please note
uint8_t len
.
value
.
value
.
value
.
value
.
value
.
.
value
.
must be 7,
— Connects an
,
source
,
source
— Sets the

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents