So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Paolo Cinaglia
#71385
rudy wrote:A RTC chip can exist on it's own. It is designed to keep working when the rest of the system is turned off. As long as it has power, and a working crystal circuit, it should continue working until the battery power is exhausted.

If you have confirmed that the clock is working, incrementing time, then it should continue working when the ESP is reset, in a sleep state, or just powered off. None of those conditions should affect the RTC.

After two weeks of reading and searching (and imprecation) I achieved the fact that i can't use the pcf 8523 as i want. I don't know how to use the i2c comunication to set the alarm to wake up the esp8266 and i can't find no example to learn about. I thing i need to quit with this rtc and search some easly rtc to use in my project
User avatar
By rudy
#71390 [quote="Paolo Cinaglia I achieved the fact that i can't use the pcf 8523 as i want. I don't know how to use the i2c comunication to set the alarm to wake up the esp8266 and i can't find no example to learn about. I thing i need to quit with this rtc and search some easly rtc to use in my project[/quote]

Now it is clear what you wish to do. I looked through your previous posts and there was some problems with the wording.

I found a library that seems to have the alarm/interrupt function, but no example.
https://github.com/SpellFoundry/PCF8523 ... 523.h#L263

I have not used a RTC to generate interrupt alarms. The RTC that I use is the DS3232 and it has alarm/interrupt feature. The following library does support it.
https://github.com/JChristensen/DS3232RTC
User avatar
By Paolo Cinaglia
#71410
rudy wrote:Now it is clear what you wish to do. I looked through your previous posts and there was some problems with the wording.

I found a library that seems to have the alarm/interrupt function, but no example.
https://github.com/SpellFoundry/PCF8523 ... 523.h#L263

I have not used a RTC to generate interrupt alarms. The RTC that I use is the DS3232 and it has alarm/interrupt feature. The following library does support it.
https://github.com/JChristensen/DS3232RTC


Sure! I'm not english and i've some problem with the wording.

Thank you for support Rudy.
User avatar
By Paolo Cinaglia
#71609 I'm here again because I'm very close to solution of my problem (well, i think to be close but i don't really know)

I've found this tutorial http://tronixstuff.com/2013/08/13/tutorial-arduino-and-pcf8563-real-time-clock-ic/ for the PCF8623; i've adapted to my PCF8523 but now i'm stucked with the sqw pin. He uses the code to turn off and on the oscillator like this
Code: Select allvoid PCF8563oscOFF()
// turns off oscillator
{
  Wire.beginTransmission(PCF8563address);
  Wire.write(0x0D);
  Wire.write(0);
  Wire.endTransmission();
}
 
void PCF8563osc1Hz()
// sets oscillator to 1 Hz
{
  Wire.beginTransmission(PCF8563address);
  Wire.write(0x0D);
  Wire.write(B10000011);
  Wire.endTransmission();
}


With this i'm unable to use my oscillator. I don't know how to change that code (meanwhile i've asked at the author of the tutorial how can i do; i'm waiting my question were published). Have someone some idea?