<?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>LPC MicrocontrollersのトピックLPC43S70 HSADC THRESHOLD_SEL=1(THR_A) And HSADC MATCH_VALUE=1</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1936985#M56678</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Want to know the behavior&lt;STRONG&gt; H&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;SADC_DESC_MATCH(0x0)&lt;/STRONG&gt; and&lt;STRONG&gt; HSADC_DESC_THRESH_A&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;below example,&lt;/P&gt;&lt;P&gt;As my undestand,&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;H&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;SADC_DESC_MATCH(0x0)&amp;nbsp;&lt;/STRONG&gt;will start simpling imediataly in this case.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;STRONG&gt;HSADC_DESC_THRESH_A&amp;nbsp;&lt;/STRONG&gt;will start simpling at trigger threshold_A.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;In this case. which behavior will be higher priority? &lt;STRONG&gt;simpling&amp;nbsp; imediataly or wait unitl THRSH_A trigger?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Chip_HSADC_SetupDescEntry(LPC_ADCHS, 0, 0, (HSADC_DESC_CH(1) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HSADC_DESC_BRANCH_NEXT | HSADC_DESC_MATCH(0x1) | HSADC_DESC_THRESH_A |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HSADC_DESC_RESET_TIMER));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 21 Aug 2024 05:21:38 GMT</pubDate>
    <dc:creator>robberpen</dc:creator>
    <dc:date>2024-08-21T05:21:38Z</dc:date>
    <item>
      <title>LPC43S70 HSADC THRESHOLD_SEL=1(THR_A) And HSADC MATCH_VALUE=1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1936985#M56678</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Want to know the behavior&lt;STRONG&gt; H&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;SADC_DESC_MATCH(0x0)&lt;/STRONG&gt; and&lt;STRONG&gt; HSADC_DESC_THRESH_A&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;below example,&lt;/P&gt;&lt;P&gt;As my undestand,&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;H&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;SADC_DESC_MATCH(0x0)&amp;nbsp;&lt;/STRONG&gt;will start simpling imediataly in this case.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;STRONG&gt;HSADC_DESC_THRESH_A&amp;nbsp;&lt;/STRONG&gt;will start simpling at trigger threshold_A.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;In this case. which behavior will be higher priority? &lt;STRONG&gt;simpling&amp;nbsp; imediataly or wait unitl THRSH_A trigger?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Chip_HSADC_SetupDescEntry(LPC_ADCHS, 0, 0, (HSADC_DESC_CH(1) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HSADC_DESC_BRANCH_NEXT | HSADC_DESC_MATCH(0x1) | HSADC_DESC_THRESH_A |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HSADC_DESC_RESET_TIMER));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Aug 2024 05:21:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1936985#M56678</guid>
      <dc:creator>robberpen</dc:creator>
      <dc:date>2024-08-21T05:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S70 HSADC THRESHOLD_SEL=1(THR_A) And HSADC MATCH_VALUE=1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1937946#M56684</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Q1)H&lt;SPAN&gt;SADC_DESC_MATCH(0x0)will start sampling immediately in this case.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;The HSADC_DESC_MATCH(0x0) does not mean that the ADC converter starts-up immediately, the HSADC_DESC_MATCH(0xxx)&amp;nbsp; can control the ADC sampling time(ADC conversion rate). Setting HSADC_DESC_MATCH(0x00) means that the ADC can get one sample for each ADC clock.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use software trigger to start ADC conversion by setting the SW_TRIGGER bit in Trigger register, pls refer to section 48.6.5 Trigger register.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use hardware trigger to start ADC conversion by setting the ADCHS_TRIGGER_IN reg, pls refer to section 18.4.25 ADCHS trigger input multiplexer (ADCHS_TRIGGER_IN).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Q2)and&amp;nbsp;&lt;STRONG&gt;HSADC_DESC_THRESH_A&amp;nbsp;&lt;/STRONG&gt;will start simpling at trigger threshold_A.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;DESCRIPTOR0x[THRESHOLD_SEL] selects the ADC result comparsion threshold register, it is NOT related to ADC starting.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it can help you&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;XiangJun Rong&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>Thu, 22 Aug 2024 03:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1937946#M56684</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-08-22T03:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S70 HSADC THRESHOLD_SEL=1(THR_A) And HSADC MATCH_VALUE=1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1938546#M56686</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26034"&gt;@xiangjun_rong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't quite understand.&lt;/P&gt;&lt;P&gt;Here a case of&amp;nbsp; both&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;HSADC_DESC_THRESH_A&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;HSADC_DESC_MATCH(0x10)&lt;/STRONG&gt; set to descriptor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then&amp;nbsp; while&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;threshold_A was trigger&lt;/STRONG&gt; at hsadc timer 0x5, what is the timing clock of simpling? clock 0x5, 0x6 or 0x10?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;BR /&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1938546#M56686</guid>
      <dc:creator>robberpen</dc:creator>
      <dc:date>2024-08-22T14:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S70 HSADC THRESHOLD_SEL=1(THR_A) And HSADC MATCH_VALUE=1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1938845#M56689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suppose that you misunderstood the threshold_A, it is not a trigger source, it is a compare register, the ADC sample result is compared with the threshold_A register automatically, then update flag or fire interrupt which indicates that the analog signal is below a threshold or above a threshold.&lt;/P&gt;
&lt;P&gt;If you set HSADC_DESC_MATCH(0x10), the adchs module has an internal counter, the tick is the ADC clock, after hardware/software trigger, when the counter reaches 16 or 0x10, the ADC will convert, so the ADC conversion rate is Fadc/16.is you set&amp;nbsp; HSADC_DESC_MATCH(0x00), the ADC will generate a sample for each ADC clock cycle.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xiangjun Rong&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="xiangjun_rong_0-1724380546937.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/294885iF06E58595BC269DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1724380546937.png" alt="xiangjun_rong_0-1724380546937.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;xiangjun_rong_0-1724380546937.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 02:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1938845#M56689</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2024-08-23T02:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC43S70 HSADC THRESHOLD_SEL=1(THR_A) And HSADC MATCH_VALUE=1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1938894#M56692</link>
      <description>Hi xiangjun_rong&lt;BR /&gt;&lt;BR /&gt;thanks for your clarification.&lt;BR /&gt;No more question.&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Aug 2024 03:35:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC43S70-HSADC-THRESHOLD-SEL-1-THR-A-And-HSADC-MATCH-VALUE-1/m-p/1938894#M56692</guid>
      <dc:creator>robberpen</dc:creator>
      <dc:date>2024-08-23T03:35:14Z</dc:date>
    </item>
  </channel>
</rss>

