<?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>MCUXpresso IDEのトピックRe: Config timer RTC frdm-mcuxc242</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2042040#M10239</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240937"&gt;@Transidico&lt;/a&gt;,&lt;BR /&gt;unfortunately, the RTC only provides a second timer, as mentioned the chapter 29.2.1 called features in the RM, however you can use the periodic interrupt timer (PIT) to make it.&lt;BR /&gt;The SDK (version 24.12) offers an example of this peripheral that could be helpful:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_0-1739309229310.png" style="width: 483px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323485iCC661F6A5E4B8E03/image-dimensions/483x290?v=v2" width="483" height="290" role="button" title="Habib_MS_0-1739309229310.png" alt="Habib_MS_0-1739309229310.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;About the PIT code, you can change the PIT frequency with the function called "PIT_SetTimerPeriod". Also, I highly recommend see the Readme of the example to know how it works.&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 21:27:40 GMT</pubDate>
    <dc:creator>Habib_MS</dc:creator>
    <dc:date>2025-02-11T21:27:40Z</dc:date>
    <item>
      <title>Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2032250#M10219</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;i am new and a beginner, i would like to carry out a project using an rtc in interrupt as a timer every second.&lt;BR /&gt;Reading the manual I have to set the following registers: RTC Time Seconds Register (RTC_TSR)&lt;BR /&gt;RTC Time Prescaler Register (RTC_TPR)&lt;BR /&gt;RTC Time Alarm Register (RTC_TAR)&lt;BR /&gt;RTC Time Compensation Register (RTC_TCR)&lt;BR /&gt;RTC Control Register (RTC_CR)&lt;BR /&gt;RTC Status Register (RTC_SR)&lt;BR /&gt;RTC Lock Register (RTC_LR)&lt;BR /&gt;RTC Interrupt Enable Register (RTC_IER)&lt;BR /&gt;But unfortunately when I try to set them via code, I get the semihost_hardfoult.&lt;/P&gt;&lt;P&gt;I was wondering if you had anything I could build on.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 10:03:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2032250#M10219</guid>
      <dc:creator>Transidico</dc:creator>
      <dc:date>2025-01-22T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2033399#M10222</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240937"&gt;@Transidico&lt;/a&gt;,&lt;BR /&gt;The SDK (version 24.12) provides some examples with the propose of show the RTC functionality, as shown the next image:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_0-1737658848406.png" style="width: 643px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321124i64445482BCCE57DC/image-dimensions/643x386?v=v2" width="643" height="386" role="button" title="Habib_MS_0-1737658848406.png" alt="Habib_MS_0-1737658848406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Where you can download the SDK through &lt;A href="https://mcuxpresso.nxp.com/en" target="_self"&gt;SDK builder&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;At the same time, you can download the SDK inside MCUxpresso IDE clicking the next button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_1-1737658905682.png" style="width: 666px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321125iA878F04C57F780A6/image-dimensions/666x318?v=v2" width="666" height="318" role="button" title="Habib_MS_1-1737658905682.png" alt="Habib_MS_1-1737658905682.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Inside to the window called "Download and install SDK" you can search the MCXC242 in the filter, where it will be showing the available SDK, as shown in the next image:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_2-1737658939491.png" style="width: 650px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321126i349343AFFADF4828/image-dimensions/650x324?v=v2" width="650" height="324" role="button" title="Habib_MS_2-1737658939491.png" alt="Habib_MS_2-1737658939491.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also, if you experience any issue, do not hesitate to let me know.&lt;BR /&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 19:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2033399#M10222</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-01-23T19:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2041869#M10238</link>
      <description>&lt;P&gt;Thank you for your reply,&lt;BR /&gt;I looked at the sdk pointed out to me and created my code. The 1 second RTC timer works correctly, but I would like to modify it to create a 1ms timer, could you give me some tips by seeing the attached code?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 14:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2041869#M10238</guid>
      <dc:creator>Transidico</dc:creator>
      <dc:date>2025-02-11T14:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2042040#M10239</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240937"&gt;@Transidico&lt;/a&gt;,&lt;BR /&gt;unfortunately, the RTC only provides a second timer, as mentioned the chapter 29.2.1 called features in the RM, however you can use the periodic interrupt timer (PIT) to make it.&lt;BR /&gt;The SDK (version 24.12) offers an example of this peripheral that could be helpful:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Habib_MS_0-1739309229310.png" style="width: 483px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323485iCC661F6A5E4B8E03/image-dimensions/483x290?v=v2" width="483" height="290" role="button" title="Habib_MS_0-1739309229310.png" alt="Habib_MS_0-1739309229310.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;About the PIT code, you can change the PIT frequency with the function called "PIT_SetTimerPeriod". Also, I highly recommend see the Readme of the example to know how it works.&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 21:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2042040#M10239</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-02-11T21:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2048001#M10257</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;thanks for your reply, I tried to set the timer pit by 1ms with the following instruction:&lt;BR /&gt;&lt;STRONG&gt;PIT_SetTimerPeriod(DEMO_PIT_BASEADDR, DEMO_PIT_CHANNEL, USEC_TO_COUNT(1000000U, PIT_SOURCE_CLOCK));&lt;/STRONG&gt;&lt;BR /&gt;Unfortunately, I notice that if I set the pit for 1s or 0.5s I see it working quite well, but if I set times less than 10 ms it suffers quite a bit from noise and it lags.&lt;BR /&gt;The 1ms one I see that it suffers from about 3/4ms noise, which is a bit too much for good accuracy.&lt;BR /&gt;I would need this timer to cadence the adc to take readings every 1ms. Could you recommend something else?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 08:40:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2048001#M10257</guid>
      <dc:creator>Transidico</dc:creator>
      <dc:date>2025-02-20T08:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2049240#M10259</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240937"&gt;@Transidico&lt;/a&gt;,&lt;BR /&gt;In order to support you better, can you provide more information?&lt;/P&gt;
&lt;P&gt;-How does noise occur in the PIT?&lt;/P&gt;
&lt;P&gt;-How are measurements made to detect noise?&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Habib&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 18:11:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2049240#M10259</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-02-21T18:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2050921#M10272</link>
      <description>&lt;P&gt;G-day,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;1)How does noise occur in the PIT?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I think it occurs because of the noise generated by the usb input that phases out the pit timer&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2)How are measurements made to detect noise?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I use the pit sdk and set it to have 1ms interrupt. To check if the interrupt is working properly on VSCODE I enable the print function with clock and notice that printing does not happen every 1ms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. Best regards!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 15:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2050921#M10272</guid>
      <dc:creator>Transidico</dc:creator>
      <dc:date>2025-02-25T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2051107#M10273</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240937"&gt;@Transidico&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In order to try a pinpoint if it solves the issue, can you comment the function called "delay"?&lt;/P&gt;
&lt;P&gt;If this does not solve the issue, could you toggle a pin inside the if and see the signal with an oscilloscope?&lt;/P&gt;
&lt;P&gt;The pin will toggle with a frequency of 2ms aprox.&lt;/P&gt;
&lt;P&gt;BR&lt;BR /&gt;Habib&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 20:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2051107#M10273</guid>
      <dc:creator>Habib_MS</dc:creator>
      <dc:date>2025-02-25T20:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Config timer RTC frdm-mcuxc242</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2051544#M10276</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I tried commenting on the delay, but sometimes the count happens every 1ms and sometimes every 2ms. It is still not very accurate.&lt;BR /&gt;This is part of the printout I get:&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;09:36:00:035 -&amp;gt; PIT counter: 7716&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;09:36:00:037 -&amp;gt; PIT counter: 7717&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;09:36:00:039 -&amp;gt; PIT counter: 7718&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;09:36:00:041 -&amp;gt; PIT counter: 7719&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="batang,apple gothic"&gt;09:36:00:043 -&amp;gt; PIT counter: 7720&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I will try with oscilloscope in the near future.&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 08:52:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Config-timer-RTC-frdm-mcuxc242/m-p/2051544#M10276</guid>
      <dc:creator>Transidico</dc:creator>
      <dc:date>2025-02-26T08:52:29Z</dc:date>
    </item>
  </channel>
</rss>

