<?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>S32KのトピックFirc Clock Test Using LPTMR</title>
    <link>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1669082#M23943</link>
    <description>&lt;P&gt;Hi. this is sung jun.&lt;/P&gt;&lt;P&gt;I am trying to test the clock precision through the LPTMR driver.&lt;BR /&gt;Here's how I planned it:&lt;/P&gt;&lt;P&gt;1. Set SIRC (8Mhz) to LPTMR.&lt;BR /&gt;Then, compare value is set for LPTMR operating at 8Mhz, and count and time are checked by checking LPTMR_CSR_TCF in a while loop.&lt;/P&gt;&lt;P&gt;2. Set FIRC (48Mhz) to LPTMR.&lt;/P&gt;&lt;P&gt;Perform the same test as in step 1.&lt;/P&gt;&lt;P&gt;Since the clock difference between SIRC and FIRC is 6 times, we want to check the expected count value and time difference.&lt;/P&gt;&lt;P&gt;However, it seems that the clock source expected to be 8MHz in my setup is not 8MHz.&lt;BR /&gt;Approximately ... 48Mhz and 4.8 to 5 times the difference.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To summarize the questions, I am curious about the following 3 things.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;I think the clock source expected to be 8Mhz is BUS_CLK, is that correct?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; In the SIRC 8MHz setting,&lt;BR /&gt;The PCS value is 0, which is marked with an x in the figure below.&lt;BR /&gt;At this time, does 0 mean BUS_CLK?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; is there a way to determine which Source Clock goes into each Peripheral?&lt;/P&gt;&lt;P&gt;Please refer to the picture below.&lt;/P&gt;&lt;P&gt;SIRC 8MHz setting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_2-1686730292546.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227624i2717E2294871C27A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_2-1686730292546.png" alt="sungjun_2-1686730292546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_0-1686730193671.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227619i3265DB1FB633761F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_0-1686730193671.png" alt="sungjun_0-1686730193671.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_4-1686730367000.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227626i6DD41DD077CD1DE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_4-1686730367000.png" alt="sungjun_4-1686730367000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FIRC 48MHz Setting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_3-1686730314022.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227625i412C2DF491C2143A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_3-1686730314022.png" alt="sungjun_3-1686730314022.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_1-1686730243708.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227621iCE47E75464E19478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_1-1686730243708.png" alt="sungjun_1-1686730243708.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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 08:19:27 GMT</pubDate>
    <dc:creator>sungjun</dc:creator>
    <dc:date>2023-06-14T08:19:27Z</dc:date>
    <item>
      <title>Firc Clock Test Using LPTMR</title>
      <link>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1669082#M23943</link>
      <description>&lt;P&gt;Hi. this is sung jun.&lt;/P&gt;&lt;P&gt;I am trying to test the clock precision through the LPTMR driver.&lt;BR /&gt;Here's how I planned it:&lt;/P&gt;&lt;P&gt;1. Set SIRC (8Mhz) to LPTMR.&lt;BR /&gt;Then, compare value is set for LPTMR operating at 8Mhz, and count and time are checked by checking LPTMR_CSR_TCF in a while loop.&lt;/P&gt;&lt;P&gt;2. Set FIRC (48Mhz) to LPTMR.&lt;/P&gt;&lt;P&gt;Perform the same test as in step 1.&lt;/P&gt;&lt;P&gt;Since the clock difference between SIRC and FIRC is 6 times, we want to check the expected count value and time difference.&lt;/P&gt;&lt;P&gt;However, it seems that the clock source expected to be 8MHz in my setup is not 8MHz.&lt;BR /&gt;Approximately ... 48Mhz and 4.8 to 5 times the difference.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To summarize the questions, I am curious about the following 3 things.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;I think the clock source expected to be 8Mhz is BUS_CLK, is that correct?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; In the SIRC 8MHz setting,&lt;BR /&gt;The PCS value is 0, which is marked with an x in the figure below.&lt;BR /&gt;At this time, does 0 mean BUS_CLK?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt; is there a way to determine which Source Clock goes into each Peripheral?&lt;/P&gt;&lt;P&gt;Please refer to the picture below.&lt;/P&gt;&lt;P&gt;SIRC 8MHz setting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_2-1686730292546.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227624i2717E2294871C27A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_2-1686730292546.png" alt="sungjun_2-1686730292546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_0-1686730193671.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227619i3265DB1FB633761F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_0-1686730193671.png" alt="sungjun_0-1686730193671.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_4-1686730367000.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227626i6DD41DD077CD1DE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_4-1686730367000.png" alt="sungjun_4-1686730367000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FIRC 48MHz Setting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_3-1686730314022.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227625i412C2DF491C2143A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_3-1686730314022.png" alt="sungjun_3-1686730314022.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_1-1686730243708.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/227621iCE47E75464E19478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_1-1686730243708.png" alt="sungjun_1-1686730243708.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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 08:19:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1669082#M23943</guid>
      <dc:creator>sungjun</dc:creator>
      <dc:date>2023-06-14T08:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Firc Clock Test Using LPTMR</title>
      <link>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1671356#M24077</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/183336"&gt;@sungjun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. I think the clock source expected to be 8Mhz is BUS_CLK, is that correct?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;No, BUS_CLK is the clock signal that limits the maximum frequency that the LPTMR can reach.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. In the SIRC 8MHz setting, t&lt;/STRONG&gt;&lt;STRONG&gt;he PCS value is 0, which is marked with an x in the figure below.&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;At this time, does 0 mean BUS_CLK?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;No, at&amp;nbsp;PCC_LPTMR0[PCS], if you select 000 you will not receive any clock signal.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. is there a way to determine which Source Clock goes into each Peripheral?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Table 27-8 (Peripheral clock summary) and Table 27-9 (Peripheral module clocking)&amp;nbsp;are the ones that show which clocks go to each peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 22:32:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1671356#M24077</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-16T22:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Firc Clock Test Using LPTMR</title>
      <link>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1671969#M24140</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913" target="_self"&gt;&lt;SPAN class=""&gt;VaneB&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I checked my settings again, and they are set as shown in the picture below.&lt;BR /&gt;SIRC (8 MHz) is shown in Figure 1.&lt;BR /&gt;FIRC (48 MHz) is Figure 2.&lt;/P&gt;&lt;P&gt;&amp;lt;Figure 1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_0-1687176510567.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228327i7166306D1A6ABBE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_0-1687176510567.png" alt="sungjun_0-1687176510567.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Figure 2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_1-1687176545060.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228328iFDF2C24042EF50C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_1-1687176545060.png" alt="sungjun_1-1687176545060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare the deviation of SIRC and FIRC through LPTMR.&lt;BR /&gt;Compare value is 1200 and Compare value Units is Microseconds.&lt;/P&gt;&lt;P&gt;Test result is going to be received as LPTMR0-&amp;gt;CNR.&lt;/P&gt;&lt;P&gt;I ran into a problem here.&lt;/P&gt;&lt;P&gt;In RM's deviation, SIRC is within 3% and FIRC is expressed within 1%, but when actually tested, it occurs from xx% to x% depending on the Compare value.&lt;/P&gt;&lt;P&gt;Did I test wrong?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_2-1687176610114.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228329i57D3B81E6786F77C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_2-1687176610114.png" alt="sungjun_2-1687176610114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In addition, the error rate was compared by changing the Compare value.&lt;BR /&gt;The result is as below, can you tell me why?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sungjun_3-1687176911453.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/228330i10141A174CC117C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sungjun_3-1687176911453.png" alt="sungjun_3-1687176911453.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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 12:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1671969#M24140</guid>
      <dc:creator>sungjun</dc:creator>
      <dc:date>2023-06-19T12:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Firc Clock Test Using LPTMR</title>
      <link>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1673054#M24214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/183336"&gt;@sungjun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please correct me if I understand wrong.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are testing the&amp;nbsp;accuracy of SIRC and SIRC using the LPTMR. My suggestion is with an oscilloscope to&amp;nbsp;try to measure the period of the PIT (the same clock frequency on both clocks) by toggling a pin.&lt;/P&gt;
&lt;P&gt;If this suggestion is not useful for you, let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 22:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Firc-Clock-Test-Using-LPTMR/m-p/1673054#M24214</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-20T22:44:47Z</dc:date>
    </item>
  </channel>
</rss>

