Zanduino / MCP7940

Arduino Library to access the MCP7940M, MCP7940N and MCP7940x Real-Time chips
GNU General Public License v3.0
35 stars 22 forks source link

Battery backup #12

Closed logicaprogrammabile closed 6 years ago

logicaprogrammabile commented 6 years ago

Hello I have a problem. after setting the time and date in the mcp7940, if I remove main power to the RTC and after a few minutes, i give power to the RTC, the time and date are reset to 1/1/2001 0:0:0. (the battery backup is connected and it is charged) the time data is not retained in memory and is not increased!!

you can verify this

regards

SV-Zanshin commented 6 years ago

Did you issue a call to "setBattery(true);" in your code? The default setting for the MCP7940 is that the battery backup is disabled.

logicaprogrammabile commented 6 years ago

no! I did not set setBattery (true); I did not notice this feature in the library !! I'll do a test tonight. thank you

logicaprogrammabile commented 6 years ago

I have tested the code and all run properly. thank you for the tip

SV-Zanshin commented 6 years ago

No worries - I'm glad that the library is working for you!