Skip to content

RV-3028-C7 Library: Add the option to see if a Power on Reset has taken place and the RTC data is NOT valid. #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 57 commits into from

Conversation

bricomp
Copy link

@bricomp bricomp commented Feb 9, 2024

Add the option to see if a Power on Reset has taken place and the RTC data is NOT valid.
Upon a program start it is useful to detect whether the RTC data is valid (or Not).
With the following changes this is possible.

  1. Add the variable bool timeUpdateRequired = true; to tyhe .h file.
  2. In the .cpp file add this line before the return:
    timeUpdateRequired = readBit(RV3028_STATUS, STATUS_PORF);
    In that way as soon as the RTC.begin is initiated the variable RTC.timeUpdateRequired can investigated to see if the date/time needs setting on the 3028.

constiko and others added 27 commits November 6, 2019 00:46
This reverts commit 2ac0de5.
Removed automatic clearing of RV3028_STATUS register in readRegister()

RV3028::setTimer(bool timer_repeat, uint16_t timer_frequency, uint16_t timer_value, bool set_interrupt, bool start_timer);
RV3028::setPeriodicUpdate(bool every_second, bool enable_interrupt, bool enable_clock_output);
Calling the constructor calls set24Hour() and disableTrickleCharge() overwriting the previous EEPROM settings without informing the caller. I've commented them out in this PR.
Added RV3028 support for Timers and PeriodicUpdate Interrupts
Added enableClockOut() and disableClockOut() functions to .cpp, prototypes to .h and updated keywords. This PR _does not_ include the hidden functions PR.
Thanks @salvagione for the useful tip. Default arguments ensure consistent behavior of the library.
Adding Clock Output (almost finished)
Update trickle charge resistor values to match datasheet.
Update trickle charge resistor values to match datasheet.

This is a breaking change. If callers use previous enableTrickleCharge() values (TCR_1K, TCR_6K, TCR_11K) their code will fail to compile.
Update Trickle Charge Resistor Values
@PaulZC
Copy link

PaulZC commented Feb 9, 2024

Hi @bricomp ,

Thanks for this contribution. But we can not merge it. You are attempting to update 20 files. It is just a mess... It belongs in its own repository. Sorry!

Best wishes,
Paul

@PaulZC PaulZC closed this Feb 9, 2024
@PaulZC
Copy link

PaulZC commented Feb 9, 2024

Perhaps you intended it to be merged here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants