Skip to content

Seconds do not increment after setting time sometimes > Solution #27

@RWBRWB

Description

@RWBRWB

I have been testing the RV-8803 for a awhile now and sometimes the time would get messed up and need to be reset.

After I reset the time the seconds would not increment but would stick at whatever they were set at.

The only way to fix this was to cut the power + pull the coin cell and put it back in to power cycle the RV-8803.

I found the reason this was happening today.

I think a Low Voltage event would trigger the time to get messed up. This set the RESET bit high in the x0F control register which prevents the seconds from ticking when resetting the hundredths timer.

Because the SetTime() function does not clear the RESET bit in the Control Register it will not allow the seconds to run.

To fix this we simply need to add this code after setting the time to make sure the RESET bit in the 0x0F Control Register is set to 0.

rtc.writeBit(RV8803_CONTROL, CONTROL_RESET, RV8803_DISABLE); //Set RESET bit to 0 after setting time to make sure seconds don't get stuck.

Now I don't have to pull the coin cell from the circuit anymore ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions