<?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 Config ToolsのトピックConfigTools bug about ADC sampling time</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1687414#M1699</link>
    <description>&lt;P&gt;In ConfigTools inside MCUXpresso, I add a "Peripheral driver" (specifically for LPADC2, on an iMXRT1176; I don't know if the bug is specific to this).&lt;BR /&gt;In the "Conversion command configuration", I can select "Sample time mode". These are the available choices: 3, 5, 7, 11, 19, 35, 69, 131.&lt;BR /&gt;However, according to the reference manual (IMXRT1170RM Rev. 2, 06/2023, pp. 6170), the sampling times are in the form (3.5 + 2**STS), so they should be 3.5, 5.5, 7.5, 11.5, 19.5, 35.5, 67.5, 131.5&lt;BR /&gt;Notice in particular that 69 should actually be 67.5; all the others are off by 0.5.&lt;BR /&gt;This is a GUI-only problem: the generated code has the correct constants (kLPADC_SampleTimeADCK67).&lt;BR /&gt;The bug extends to the automatically-calculate "Sample time" that is shown in the GUI, right below the "Sample time mode" dropdown box; this value is calculated using the wrong value 69 instead of 67.5.&lt;BR /&gt;Also, the bug extends to the comments in fsl_lpadc.h:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;typedef enum _lpadc_sample_time_mode
{
kLPADC_SampleTimeADCK3 = 0U, /*!&amp;lt; 3 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK5 = 1U, /*!&amp;lt; 5 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK7 = 2U, /*!&amp;lt; 7 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK11 = 3U, /*!&amp;lt; 11 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK19 = 4U, /*!&amp;lt; 19 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK35 = 5U, /*!&amp;lt; 35 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK67 = 6U, /*!&amp;lt; 69 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK131 = 7U, /*!&amp;lt; 131 ADCK cycles total sample time. */
} lpadc_sample_time_mode_t;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, too, the value is 69 instead of 67.5, and the others lack the .5&lt;/P&gt;&lt;P&gt;Incorrect information is also present in the latest reference manual (rev2; §87.3.5 "Sample time, compare time, and total conversion time", p.6129):&lt;BR /&gt;Sample time interval = (3+2**STS)*adc_clk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE v11.7.0 [Build 9198] [2023-01-17].&lt;/P&gt;&lt;P&gt;I didn't see any fix about this in the latest 11.7.1 version (&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE-Knowledge-Base/MCUXpresso-IDE-v11-7-1-Now-Available/ta-p/1626573" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MCUXpresso-IDE-Knowledge-Base/MCUXpresso-IDE-v11-7-1-Now-Available/ta-p/1626573&lt;/A&gt;), nor in ConfigTools (&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Config-Tools-for-i-MX-v13-1-Now-Available/ta-p/1629130" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Config-Tools-for-i-MX-v13-1-Now-Available/ta-p/1629130&lt;/A&gt;)&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 09:43:37 GMT</pubDate>
    <dc:creator>stefano-quantic</dc:creator>
    <dc:date>2023-07-13T09:43:37Z</dc:date>
    <item>
      <title>ConfigTools bug about ADC sampling time</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1687414#M1699</link>
      <description>&lt;P&gt;In ConfigTools inside MCUXpresso, I add a "Peripheral driver" (specifically for LPADC2, on an iMXRT1176; I don't know if the bug is specific to this).&lt;BR /&gt;In the "Conversion command configuration", I can select "Sample time mode". These are the available choices: 3, 5, 7, 11, 19, 35, 69, 131.&lt;BR /&gt;However, according to the reference manual (IMXRT1170RM Rev. 2, 06/2023, pp. 6170), the sampling times are in the form (3.5 + 2**STS), so they should be 3.5, 5.5, 7.5, 11.5, 19.5, 35.5, 67.5, 131.5&lt;BR /&gt;Notice in particular that 69 should actually be 67.5; all the others are off by 0.5.&lt;BR /&gt;This is a GUI-only problem: the generated code has the correct constants (kLPADC_SampleTimeADCK67).&lt;BR /&gt;The bug extends to the automatically-calculate "Sample time" that is shown in the GUI, right below the "Sample time mode" dropdown box; this value is calculated using the wrong value 69 instead of 67.5.&lt;BR /&gt;Also, the bug extends to the comments in fsl_lpadc.h:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;typedef enum _lpadc_sample_time_mode
{
kLPADC_SampleTimeADCK3 = 0U, /*!&amp;lt; 3 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK5 = 1U, /*!&amp;lt; 5 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK7 = 2U, /*!&amp;lt; 7 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK11 = 3U, /*!&amp;lt; 11 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK19 = 4U, /*!&amp;lt; 19 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK35 = 5U, /*!&amp;lt; 35 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK67 = 6U, /*!&amp;lt; 69 ADCK cycles total sample time. */
kLPADC_SampleTimeADCK131 = 7U, /*!&amp;lt; 131 ADCK cycles total sample time. */
} lpadc_sample_time_mode_t;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, too, the value is 69 instead of 67.5, and the others lack the .5&lt;/P&gt;&lt;P&gt;Incorrect information is also present in the latest reference manual (rev2; §87.3.5 "Sample time, compare time, and total conversion time", p.6129):&lt;BR /&gt;Sample time interval = (3+2**STS)*adc_clk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE v11.7.0 [Build 9198] [2023-01-17].&lt;/P&gt;&lt;P&gt;I didn't see any fix about this in the latest 11.7.1 version (&lt;A href="https://community.nxp.com/t5/MCUXpresso-IDE-Knowledge-Base/MCUXpresso-IDE-v11-7-1-Now-Available/ta-p/1626573" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/MCUXpresso-IDE-Knowledge-Base/MCUXpresso-IDE-v11-7-1-Now-Available/ta-p/1626573&lt;/A&gt;), nor in ConfigTools (&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Config-Tools-for-i-MX-v13-1-Now-Available/ta-p/1629130" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Config-Tools-for-i-MX-v13-1-Now-Available/ta-p/1629130&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 09:43:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1687414#M1699</guid>
      <dc:creator>stefano-quantic</dc:creator>
      <dc:date>2023-07-13T09:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools bug about ADC sampling time</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1688695#M1700</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Let us double check which information of i.MX RT1170 Processor Reference Manual is the right one (3+2**STS or 3.5+2**STS)&amp;nbsp;to give you a more proper answer.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;In the meantime, we will let the team in charge to know about this for upcoming updates. Either to modify the RM or the SDK and ConfigTools.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Thanks for the feedback.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 18:57:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1688695#M1700</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-07-14T18:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools bug about ADC sampling time</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1724886#M1725</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;First of all, we apologize for the delay.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;After double check the information, we have obtained the following: "&lt;EM&gt;The table listed is correct, but the equation needs to be updated to match the table. &lt;STRONG&gt;It should be 3.5+2^STS instead of 3+2^STS.&lt;/STRONG&gt;&lt;/EM&gt;"&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Finally, this issue has been reported to the documentation team for a future update.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Thanks again for your feedback.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 17:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1724886#M1725</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-09-18T17:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools bug about ADC sampling time</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1725531#M1727</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also: §87.3.5 (in the reference manual) suggests that a value STS=0 corresponds to a setting 3.5+2**STS = 3.5+2**0 = 3.5+1 = 4.5&lt;BR /&gt;The register description in §87.7.1.14.4, instead, states that STS=0 is a special case; the formula doesn't apply here, and the setting is 3.5 (which is in line with the SDK naming, barring the .5 error).&lt;BR /&gt;So, I guess the correct setting for STS=0 is 3.5&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 12:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1725531#M1727</guid>
      <dc:creator>stefano-quantic</dc:creator>
      <dc:date>2023-09-19T12:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: ConfigTools bug about ADC sampling time</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1729099#M1729</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;You are right, according to Section 87.7.1.14., the formula doesn't apply if you use a zero value for STS. In this case the table mentions the value of 3.5 for STS [000].&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 18:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/ConfigTools-bug-about-ADC-sampling-time/m-p/1729099#M1729</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-09-25T18:44:34Z</dc:date>
    </item>
  </channel>
</rss>

