<?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>S32 Design Studio中的主题 STM questions</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1694125#M10642</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use STM as timer. I configured as below and found the &lt;STRONG&gt;Count(CNT)&lt;/STRONG&gt; increased by 1000 in 1 ms.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jetty_1012_0-1690453542933.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233905i31303741FDDDB7A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jetty_1012_0-1690453542933.png" alt="jetty_1012_0-1690453542933.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="jetty_1012_1-1690454093338.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233910i1683F3C0EDC3BE82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jetty_1012_1-1690454093338.png" alt="jetty_1012_1-1690454093338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My questions are&lt;/P&gt;&lt;P&gt;1. Which clock does STM use?&lt;/P&gt;&lt;P&gt;2. The &lt;STRONG&gt;CNT&lt;/STRONG&gt; increased by 1000 in 1ms only when I set &lt;STRONG&gt;GptStmPrescaler&lt;/STRONG&gt; to 48, so what is the relationship between clock and&amp;nbsp;GptStmPrescaler?&lt;/P&gt;&lt;P&gt;3. I use this API &lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Stm_Ip_GetCounterValue&lt;/EM&gt; &lt;/STRONG&gt;to read &lt;STRONG&gt;CNT.&lt;/STRONG&gt;&amp;nbsp;And there's another API&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Stm_Ip_GetCompareValue&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;which is related to&amp;nbsp;&lt;STRONG&gt;Channel Compare (CMP0 - CMP3)&lt;/STRONG&gt;, what is this API used for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 10:44:57 GMT</pubDate>
    <dc:creator>jetty_1012</dc:creator>
    <dc:date>2023-07-27T10:44:57Z</dc:date>
    <item>
      <title>STM questions</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1694125#M10642</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use STM as timer. I configured as below and found the &lt;STRONG&gt;Count(CNT)&lt;/STRONG&gt; increased by 1000 in 1 ms.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jetty_1012_0-1690453542933.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233905i31303741FDDDB7A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jetty_1012_0-1690453542933.png" alt="jetty_1012_0-1690453542933.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="jetty_1012_1-1690454093338.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233910i1683F3C0EDC3BE82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jetty_1012_1-1690454093338.png" alt="jetty_1012_1-1690454093338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My questions are&lt;/P&gt;&lt;P&gt;1. Which clock does STM use?&lt;/P&gt;&lt;P&gt;2. The &lt;STRONG&gt;CNT&lt;/STRONG&gt; increased by 1000 in 1ms only when I set &lt;STRONG&gt;GptStmPrescaler&lt;/STRONG&gt; to 48, so what is the relationship between clock and&amp;nbsp;GptStmPrescaler?&lt;/P&gt;&lt;P&gt;3. I use this API &lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Stm_Ip_GetCounterValue&lt;/EM&gt; &lt;/STRONG&gt;to read &lt;STRONG&gt;CNT.&lt;/STRONG&gt;&amp;nbsp;And there's another API&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Stm_Ip_GetCompareValue&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;which is related to&amp;nbsp;&lt;STRONG&gt;Channel Compare (CMP0 - CMP3)&lt;/STRONG&gt;, what is this API used for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 10:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1694125#M10642</guid>
      <dc:creator>jetty_1012</dc:creator>
      <dc:date>2023-07-27T10:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: STM questions</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1696144#M10667</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;Regarding your questions:&lt;/P&gt;
&lt;P&gt;1. The STM counter can be driven by AIPS_PLAT_CLK, FXOSC_CLK or FIRC_CLK.&lt;BR /&gt;2. For example:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Assuming STM0_CLK source clock is AIPS_PLAT_CLK @24MHz.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;To configure the timer&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf86756_0-1690838830325.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234414i0CE3D057CE535B5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf86756_0-1690838830325.png" alt="nxf86756_0-1690838830325.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;To configure the compare channel&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf86756_0-1690838908344.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234416iEBA37A193AD323B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf86756_0-1690838908344.png" alt="nxf86756_0-1690838908344.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. The &lt;EM&gt;Stm_Ip_GetCompareValue()&lt;/EM&gt; function gets the compare value for selected channel, it could be useful for redundancy or if you have two task, one sets the CMPx an the other can gets the value if necessary.&lt;/P&gt;
&lt;P&gt;Hope it helps you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 21:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1696144#M10667</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2023-07-31T21:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: STM questions</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1697235#M10687</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199320"&gt;@_Leo_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;Could you tell me the difference between GptStmPrescaler and&amp;nbsp;GptStmAlternatePrescaler?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jetty_1012_0-1690957453782.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234664i75AEDEAE3CE82DBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jetty_1012_0-1690957453782.jpeg" alt="jetty_1012_0-1690957453782.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 06:24:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1697235#M10687</guid>
      <dc:creator>jetty_1012</dc:creator>
      <dc:date>2023-08-02T06:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: STM questions</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1698094#M10708</link>
      <description>&lt;P&gt;The alternate prescaler is optional and it’s for dual-clock mode.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 00:46:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/STM-questions/m-p/1698094#M10708</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2023-08-03T00:46:39Z</dc:date>
    </item>
  </channel>
</rss>

