<?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>topic RTC_PCF8563 time is not increasing properly  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RTC-PCF8563-time-is-not-increasing-properly/m-p/500552#M80927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Am working with PCF8563 here i am setting the date and time, Then am reading the same thing at every two seconds using some timer concept here for one to two hours the time is updating properly , after that the time is not increasing gradually some 10 minutes deviation is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same thing if i read every one seconds means time is getting update properly, What is the issue. Where am doing the mistake. What and all the possibilities for this issue.How to resolve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached my I2C files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t RTC_buffer_Write[14]={0x30,0x00,0x12,0x02,0x01,0x01,0x15};&lt;/P&gt;&lt;P&gt;uint8_t RTC_buffer_Read[13];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am using this line for writing the date and time to RTC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I2C_Read_Write(RTC8563_ADDR,0x02,&amp;amp;RTC_buffer_Write[0],&amp;amp;RTC_buffer_Read,0,7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this line for reading the date and time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I2C_Read_Write(RTC8563_ADDR,0x02,&amp;amp;RTC_buffer_Write,&amp;amp;RTC_buffer_Read,1, 7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********SECONDS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[0]=RTC_buffer_Read[0] &amp;amp; 0x7f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********MINUTES***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[1]=RTC_buffer_Read[1] &amp;amp; 0x7f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********HOURS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[2]=RTC_buffer_Read[2] &amp;amp; 0x3f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********DAYS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[3]=RTC_buffer_Read[3] &amp;amp; 0x3f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********NAME_OF_DAY***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[4]=RTC_buffer_Read[4] &amp;amp; 0x07;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********MONTHS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[5]=RTC_buffer_Read[5] &amp;amp; 0x1f;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2016 11:18:42 GMT</pubDate>
    <dc:creator>gomathichinnasa</dc:creator>
    <dc:date>2016-04-13T11:18:42Z</dc:date>
    <item>
      <title>RTC_PCF8563 time is not increasing properly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-PCF8563-time-is-not-increasing-properly/m-p/500552#M80927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Am working with PCF8563 here i am setting the date and time, Then am reading the same thing at every two seconds using some timer concept here for one to two hours the time is updating properly , after that the time is not increasing gradually some 10 minutes deviation is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same thing if i read every one seconds means time is getting update properly, What is the issue. Where am doing the mistake. What and all the possibilities for this issue.How to resolve this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached my I2C files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t RTC_buffer_Write[14]={0x30,0x00,0x12,0x02,0x01,0x01,0x15};&lt;/P&gt;&lt;P&gt;uint8_t RTC_buffer_Read[13];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am using this line for writing the date and time to RTC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I2C_Read_Write(RTC8563_ADDR,0x02,&amp;amp;RTC_buffer_Write[0],&amp;amp;RTC_buffer_Read,0,7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this line for reading the date and time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I2C_Read_Write(RTC8563_ADDR,0x02,&amp;amp;RTC_buffer_Write,&amp;amp;RTC_buffer_Read,1, 7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********SECONDS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[0]=RTC_buffer_Read[0] &amp;amp; 0x7f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********MINUTES***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[1]=RTC_buffer_Read[1] &amp;amp; 0x7f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********HOURS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[2]=RTC_buffer_Read[2] &amp;amp; 0x3f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********DAYS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[3]=RTC_buffer_Read[3] &amp;amp; 0x3f;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********NAME_OF_DAY***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[4]=RTC_buffer_Read[4] &amp;amp; 0x07;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /***********MONTHS***************/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_buffer_Read[5]=RTC_buffer_Read[5] &amp;amp; 0x1f;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:18:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-PCF8563-time-is-not-increasing-properly/m-p/500552#M80927</guid>
      <dc:creator>gomathichinnasa</dc:creator>
      <dc:date>2016-04-13T11:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: RTC_PCF8563 time is not increasing properly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RTC-PCF8563-time-is-not-increasing-properly/m-p/500553#M80928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the PCF8563 Data Sheet document, available on the PCF8563 Documentation web page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Finterface-and-connectivity%2Finterface-and-system-management%2Fi2c%2Fi2c-real-time-clocks-rtc%2Freal-time-clock-calendar%3APCF8563%3Ffpsp%3D1%26tab%3DDocumentation_Tab%23nogo" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/interface-and-connectivity/interface-and-system-management/i2c/i2c-real-time-clocks-rtc/real-time-clock-calendar:PCF8563?fpsp=1&amp;amp;tab=Documentation_Tab#nogo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the Section 8.5 "Setting and reading the time" that describes in details the mechanism and algorithm of setting and reading the PCF8563 counter values. Check whether your code follows exactly this algorithm. Also, check whether the I2C bus transfer is performed at highest possible (400kHz) speed. Using highest transfer speed is prefered to avoid non-monolitic counter&lt;/P&gt;&lt;P&gt;increment. Also, since undervoltage condition on the VDD supply voltage can break the counters integrity, check whether the undervoltage condition occurs on VDD and whether the VL bit in the VL_seconds register is ever set.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 09:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RTC-PCF8563-time-is-not-increasing-properly/m-p/500553#M80928</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2016-04-19T09:40:32Z</dc:date>
    </item>
  </channel>
</rss>

