<?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 Re: Slow Run Mode and Normal Mode Togheter in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Slow-Run-Mode-and-Normal-Mode-Togheter/m-p/1160619#M8329</link>
    <description>&lt;P&gt;Hi Paola,&lt;/P&gt;
&lt;P&gt;The SlowRunMode and MormalRunMode are not modes of the MCU.&lt;/P&gt;
&lt;P&gt;The MCU has the following run modes: RUN, HSRUN, VLPR.&lt;/P&gt;
&lt;P&gt;If you use DWT to measure the execution time and the count difference is 992, then the elapsed time is 992 / CORE_CLK (SYS_CLK).&lt;/P&gt;
&lt;P&gt;But it has nothing to the with the ADC clock.&lt;/P&gt;
&lt;P&gt;The FlexCAN module can use either SYS_CLK or SOSCDIV2_CLK.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1601376210648.png" style="width: 615px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126441i53FC05065D678FC1/image-dimensions/615x327?v=v2" width="615" height="327" role="button" title="danielmartynek_0-1601376210648.png" alt="danielmartynek_0-1601376210648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:44:39 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2020-09-29T10:44:39Z</dc:date>
    <item>
      <title>Slow Run Mode and Normal Mode Togheter</title>
      <link>https://community.nxp.com/t5/S32K/Slow-Run-Mode-and-Normal-Mode-Togheter/m-p/1159290#M8285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a question about the clock of &lt;STRONG&gt;s32k144.&lt;/STRONG&gt; If I select the slow run mode I chose as clock FIRC clock that means CORE_CLOCK, BUS_CLOCK and SYS_CLOCK equal to 48MHz. So in my code I configured the ADC. In particular, the clock of ADC:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_decesare_0-1601029717542.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126190iAB75779A30E1C0EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="p_decesare_0-1601029717542.png" alt="p_decesare_0-1601029717542.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At the same time in my code I configured the CAN-Bus. The CAN has as clock SOSCDIV2 (NormalRunMode). The configuration of CAN and its clock:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_decesare_1-1601029788184.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126192i57A6DC4A00A628D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="p_decesare_1-1601029788184.png" alt="p_decesare_1-1601029788184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To measure the Core Clock Cycles of ADC, I used the library&amp;nbsp;#include &lt;STRONG&gt;&amp;lt;elapsed_time.h&amp;gt;&lt;/STRONG&gt; and the functions: &lt;STRONG&gt;void elapsed_time_init(), void&amp;nbsp;elapsed_time_start (uint32_t i), void&amp;nbsp;elapsed_time_stop(uint32_t i)&lt;/STRONG&gt;.&lt;BR /&gt;In the main function, to quantify the time interval, necessary to have the conversion of ADC, I wrote (yellow line):&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_decesare_2-1601029998308.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126193i2999A9FA8E184253/image-size/medium?v=v2&amp;amp;px=400" role="button" title="p_decesare_2-1601029998308.png" alt="p_decesare_2-1601029998308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if the difference is 992 and for the fact that there are configured &lt;STRONG&gt;both SlowRunMode and NormalRunMode&lt;/STRONG&gt;, what could I do? I perform the ratio between 992 and 48MHz for the fact that the ADC works with FIRC clock?&lt;BR /&gt;It is possible to configure FlexCAN in order to have as clock FIRC clock?&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;Sorry if this question is trivial, but I don't comprehend well the clock of the board.&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Paola&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 10:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Slow-Run-Mode-and-Normal-Mode-Togheter/m-p/1159290#M8285</guid>
      <dc:creator>p_decesare</dc:creator>
      <dc:date>2020-09-25T10:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Slow Run Mode and Normal Mode Togheter</title>
      <link>https://community.nxp.com/t5/S32K/Slow-Run-Mode-and-Normal-Mode-Togheter/m-p/1160619#M8329</link>
      <description>&lt;P&gt;Hi Paola,&lt;/P&gt;
&lt;P&gt;The SlowRunMode and MormalRunMode are not modes of the MCU.&lt;/P&gt;
&lt;P&gt;The MCU has the following run modes: RUN, HSRUN, VLPR.&lt;/P&gt;
&lt;P&gt;If you use DWT to measure the execution time and the count difference is 992, then the elapsed time is 992 / CORE_CLK (SYS_CLK).&lt;/P&gt;
&lt;P&gt;But it has nothing to the with the ADC clock.&lt;/P&gt;
&lt;P&gt;The FlexCAN module can use either SYS_CLK or SOSCDIV2_CLK.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1601376210648.png" style="width: 615px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126441i53FC05065D678FC1/image-dimensions/615x327?v=v2" width="615" height="327" role="button" title="danielmartynek_0-1601376210648.png" alt="danielmartynek_0-1601376210648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:44:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Slow-Run-Mode-and-Normal-Mode-Togheter/m-p/1160619#M8329</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-09-29T10:44:39Z</dc:date>
    </item>
  </channel>
</rss>

