<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックMCF52210 RTC problem</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52210-RTC-problem/m-p/174980#M6735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 2;"&gt;For awhile now I've been using the RTC and its been working correctly, but now it is getting screwy.&amp;nbsp; The way i have it configured is that it can update the clock if the time is sent serially.&amp;nbsp; The problem occurs when I set the day register using the data received serially.&amp;nbsp; For some reason it messes up the hours and minutes registers.&amp;nbsp; It almost looks like every time the seconds register reaches 60 it increments both the minutes and the hours.&amp;nbsp; The problem does not occur if I don't give the day register a value, the code is setup as follows:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;&amp;nbsp; //REAL TIME CLOCK CONFIG&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; MCF_CLOCK_RTCCR=0b01010110; //RTCCC&lt;BR /&gt;&amp;nbsp; MCF_RTCGOCL = 0x00002000; //32KHz&lt;BR /&gt;&amp;nbsp; MCF_CLOCK_RTCCR=0b01010111; //RTCCC\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;// Writing to registers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;&amp;nbsp;MCF_RTC_HOURMIN = (((stimValue[parsingOffset + 3]) &amp;lt;&amp;lt; 8) | (stimValue[parsingOffset + 4]));&amp;nbsp;&lt;BR /&gt;&amp;nbsp;MCF_RTC_SECONDS = MCF_RTC_SECONDS_SECONDS(stimValue[parsingOffset + 5]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;MCF_RTC_DAYS = (stimValue[parsingOffset +6]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;The stimValue is the data received serially, I'm just picking off the values needed to update&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;I know reading the values is not the problem becuase I looked in the registers and the acually values in the registers are changing, to weird numbers once the day reg is written to.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2008 20:10:27 GMT</pubDate>
    <dc:creator>junkers13</dc:creator>
    <dc:date>2008-07-22T20:10:27Z</dc:date>
    <item>
      <title>MCF52210 RTC problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52210-RTC-problem/m-p/174980#M6735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 2;"&gt;For awhile now I've been using the RTC and its been working correctly, but now it is getting screwy.&amp;nbsp; The way i have it configured is that it can update the clock if the time is sent serially.&amp;nbsp; The problem occurs when I set the day register using the data received serially.&amp;nbsp; For some reason it messes up the hours and minutes registers.&amp;nbsp; It almost looks like every time the seconds register reaches 60 it increments both the minutes and the hours.&amp;nbsp; The problem does not occur if I don't give the day register a value, the code is setup as follows:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;&amp;nbsp; //REAL TIME CLOCK CONFIG&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; MCF_CLOCK_RTCCR=0b01010110; //RTCCC&lt;BR /&gt;&amp;nbsp; MCF_RTCGOCL = 0x00002000; //32KHz&lt;BR /&gt;&amp;nbsp; MCF_CLOCK_RTCCR=0b01010111; //RTCCC\&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;// Writing to registers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;&amp;nbsp;MCF_RTC_HOURMIN = (((stimValue[parsingOffset + 3]) &amp;lt;&amp;lt; 8) | (stimValue[parsingOffset + 4]));&amp;nbsp;&lt;BR /&gt;&amp;nbsp;MCF_RTC_SECONDS = MCF_RTC_SECONDS_SECONDS(stimValue[parsingOffset + 5]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;MCF_RTC_DAYS = (stimValue[parsingOffset +6]);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;The stimValue is the data received serially, I'm just picking off the values needed to update&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;I know reading the values is not the problem becuase I looked in the registers and the acually values in the registers are changing, to weird numbers once the day reg is written to.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2008 20:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52210-RTC-problem/m-p/174980#M6735</guid>
      <dc:creator>junkers13</dc:creator>
      <dc:date>2008-07-22T20:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52210 RTC problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52210-RTC-problem/m-p/174981#M6736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;nvm I got it solved, freescale replied to me.&amp;nbsp; It seems there is alot more to initializing the RTC than I thought.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2008 03:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52210-RTC-problem/m-p/174981#M6736</guid>
      <dc:creator>junkers13</dc:creator>
      <dc:date>2008-08-02T03:35:39Z</dc:date>
    </item>
  </channel>
</rss>

