<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Other NXP ProductsのトピックRe: PCF8563 RTC gives i2c Fail</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1234236#M10491</link>
    <description>&lt;P&gt;Thank you Tomas......I found out that the 0x00 that I get on the bus is the ESP Address. while the RTC was missing on the board that I was using. i asked for a replacement.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 08:43:28 GMT</pubDate>
    <dc:creator>AL_AM</dc:creator>
    <dc:date>2021-02-22T08:43:28Z</dc:date>
    <item>
      <title>PCF8563 RTC gives i2c Fail</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1230768#M10438</link>
      <description>&lt;P&gt;Hello, I'm using a custom board that contains 5 i2c sensors. The i2c Bus works fine. the pull-up resistors are included and when I use the I2C tool to detect the i2c connected sensors I get the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AL_AM_0-1613341967019.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137164i46823DB198A891A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AL_AM_0-1613341967019.png" alt="AL_AM_0-1613341967019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above image shows that the RTC has the address 0x00 while in the datasheet of the PCF8563 it has 2 addresses depends on the read-write operation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AL_AM_1-1613341967034.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137165iCFD000DB60E31BC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AL_AM_1-1613341967034.png" alt="AL_AM_1-1613341967034.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this mean that the RTC is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the address 0x00 is the only unknown address for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it is working then, when I tried to follow the&amp;nbsp;&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/user-guide/UM10301.pdf" target="_self"&gt;User-guide_UM10301&lt;/A&gt;&amp;nbsp;exactly on page 27 where there is an example of how to set the PCF8563:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AL_AM_2-1613341967035.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137166i8C1C2144457515CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AL_AM_2-1613341967035.png" alt="AL_AM_2-1613341967035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I always get an error in the i2c. my code is as follows:&lt;/P&gt;&lt;P&gt;(I use the ESP32 with the esspressif-idf )&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AL_AM_3-1613341967037.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137167iE80AF160657A8F33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AL_AM_3-1613341967037.png" alt="AL_AM_3-1613341967037.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        i2c_master_start(CMD);
        i2c_master_write_byte(CMD, RTC_Write_Add, Want_Ack);
        i2c_master_write_byte(CMD, control_status_1, Want_Ack);
        i2c_master_write_byte(CMD, 0x00, Want_Ack);
        i2c_master_write_byte(CMD, 0x00, Want_Ack);
        i2c_master_write_byte(CMD, VL_secondsReg, Want_Ack);
        i2c_master_write_byte(CMD, 0x00, Want_Ack);        // Vl Sec 00
        i2c_master_write_byte(CMD, 0x45, Want_Ack);        // Min 45
        i2c_master_write_byte(CMD, 0x19, Want_Ack);        // Hou 7 PM
        i2c_master_write_byte(CMD, 0x12, Want_Ack);        // Days 12
        i2c_master_write_byte(CMD, 0x05, Want_Ack);        // Fri
        i2c_master_write_byte(CMD, 0x82, Want_Ack);        // set month 
        i2c_master_write_byte(CMD, 0x21, Want_Ack);        // 2021
        i2c_master_stop(CMD);
        ESP_ERROR_CHECK(i2c_master_cmd_begin(I2C_NUM_0, CMD, 1000 / portTICK_RATE_MS));&lt;/LI-CODE&gt;&lt;P&gt;Summarizing my questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- The appearance of the address 0x00 (which is the Control_status_1 Register) as the chip address is ok&lt;/P&gt;&lt;P&gt;2- if it's ok, then what could be my issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 22:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1230768#M10438</guid>
      <dc:creator>AL_AM</dc:creator>
      <dc:date>2021-02-14T22:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: PCF8563 RTC gives i2c Fail</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1230907#M10440</link>
      <description>&lt;P&gt;Hello Amir,&lt;/P&gt;
&lt;P&gt;The 7-bit slave address of the PCF8563 is 0x51 followed by a write (0) or read (1) bit. This results in 0xA2 for a write as shown in the datasheet.&lt;/P&gt;
&lt;P&gt;The second byte is the address of the register you want to write to. In your case Control_status_1 (0x00).&lt;/P&gt;
&lt;P&gt;The third byte is the data you want to write to the register. In your case 0x00.&lt;/P&gt;
&lt;P&gt;Then you can either send a stop condition or continue sending next bytes as the PCF8563 support auto incrementing of the register address.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 436px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137172i135182B5367EF542/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It might be useful to use a logic analyzer or an oscilloscope to check what is going on the bus.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Tomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 09:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1230907#M10440</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2021-02-15T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: PCF8563 RTC gives i2c Fail</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1234236#M10491</link>
      <description>&lt;P&gt;Thank you Tomas......I found out that the 0x00 that I get on the bus is the ESP Address. while the RTC was missing on the board that I was using. i asked for a replacement.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 08:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1234236#M10491</guid>
      <dc:creator>AL_AM</dc:creator>
      <dc:date>2021-02-22T08:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: PCF8563 RTC gives i2c Fail</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1704619#M18928</link>
      <description>&lt;P&gt;I am using the pfc8563 in 4 dataloggers running on STM32L152RE. The RTC loses about a second a day, so I wrote a simple arduino program&amp;nbsp; get the date and time from the internet. This works well for DS3231 RTC but I cannot get the PFC8563 to connect using any ESP processors (ESP32 or ESP8266) and I do not have a spare STM to use. I2c finder running on ESP32 can find the 8563 at 0x51, but the program is unable to set the time on this RTC, but works fine with the DS3231 RTC. Yet using the STM works OK! What could be the issue? I have spent weeks on this and have gotten nowhere. I am using Joe Robertson's library for 856, Rtc_Pfc8563 which others have used and recommended. I am not a programmer so I feel unsure about changing timings if that is the issue.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lockie&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 02:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/PCF8563-RTC-gives-i2c-Fail/m-p/1704619#M18928</guid>
      <dc:creator>lockie</dc:creator>
      <dc:date>2023-08-15T02:26:52Z</dc:date>
    </item>
  </channel>
</rss>

