-->
Page 1 of 1

Vdd_RTC Pin

PostPosted: Sun May 24, 2015 7:25 am
by donnaware
I have read several posts about what this pin is for, sorry I did not read all of them but the basic gist was there is no documentation on it, it reads 1.1V output. Some speculation that a coin battery was supposed to be attached to it.
I am not sure if anyone else has done anything with it but I have a need to save some data but I don't want to fool with the flash because you have to erase a whole sector to just save a couple of bytes of data, or least that is my read on it, unless someone knows a tricky way around that.

Anyhoo, I thought it might be interesting to throw a SuperCap on there and just see if that would work and sure nuf, the super cap charges up (slowly) and then when you power down the chip, it seems pretty stable.

So I wrote a little code to test out this theory (probably someone already tried this, but here it is

Code: Select all// ----------------------------------------------------------------------------
// Save something to RTC
// ----------------------------------------------------------------------------
static void savetoRTC(void)
{
    bool ret;
    uint32 rtc_addr = 64;  //  user memory
    char str[32] = "Test1";

    ret = system_rtc_mem_write(rtc_addr, str, strlen(str)/4+1);
    if(ret) con_printf("data saved\r\n");
    else    con_printf("error\r\n");
}

// ----------------------------------------------------------------------------
// Get it back from RTC
// ----------------------------------------------------------------------------
static void getfromRTC(void)
{
    bool ret;
    uint32 rtc_addr = 64;  //  user memory (512 bytes)
    char   str[32];

    ret = system_rtc_mem_read(rtc_addr, str, sizeof(str)/4);
    if(ret) {
        str[31] = 0;                      // precaution
        con_printf("val: %s\r\n", str);
    }
    else {
        con_printf("error\r\n");
    }


Right now I have a .022F Cap on there (that is Farad not uf, if I am doing my arithmeestick right that is 22,000uf, but as Supercaps go I guess that is not all that big). Anyhow, it's been a couple of hours and it is still got my data saved. I am not sure if you have to put the chip into deep sleep, sleep or whatever, it doesn't seems like it. It seems like it is running just the RTC while the power is off.

Anybody else fooled with this ? I am gonna leave this one ESP8266 laying around for a coupla days and see what happens.

Re: Vdd_RTC Pin

PostPosted: Sun May 24, 2015 8:01 am
by pvvx
Chip power off:
VCC_RTC
5 uA on 850mV
7 uA on 950mV
15 uA on 1.2V

Chip power on:
VCC_RTC = 1.09 V (internal)
32 uA on 1.2V (if external power)

AG13 (LR44) + diode (VCC_RTC ~0.9V, ~6 uA) = 2..3 year

Maximum voltage VCC_RTC 1.1V!

Re: Vdd_RTC Pin

PostPosted: Sun May 24, 2015 11:54 am
by donnaware
pvvx wrote:Chip power off:
VCC_RTC
5 uA on 850mV
7 uA on 950mV
15 uA on 1.2V

Chip power on:
VCC_RTC = 1.09 V (internal)
32 uA on 1.2V (if external power)

AG13 (LR44) + diode (VCC_RTC ~0.9V, ~6 uA) = 2..3 year

Maximum voltage VCC_RTC 1.1V!


It seems like a super cap would work too?
Although that battery probably costs less I suppose.