<?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: HSADC on KV58F in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755812#M46084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I connect as follows:&lt;/P&gt;&lt;P&gt;HSADC0A ch0--&amp;gt;Pin18&lt;/P&gt;&lt;P&gt;HSADC0A ch1--&amp;gt;Pin19&lt;/P&gt;&lt;P&gt;HSADC0A ch2--&amp;gt;Pin27&lt;/P&gt;&lt;P&gt;HSADC0A ch3--&amp;gt;Pin28&lt;/P&gt;&lt;P&gt;HSADC0A ch4--&amp;gt;Pin37&lt;/P&gt;&lt;P&gt;HSADC0A ch5--&amp;gt;Pin38&lt;/P&gt;&lt;P&gt;HSADC0A ch6--&amp;gt;Pin23&lt;/P&gt;&lt;P&gt;HSADC0A ch7--&amp;gt;Pin24&lt;/P&gt;&lt;P&gt;HSADC0B ch3--&amp;gt;Pin82&lt;/P&gt;&lt;P&gt;HSADC0B ch4--&amp;gt;Pin45&lt;/P&gt;&lt;P&gt;HSADC0B ch5--&amp;gt;Pin46&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the sequential scan.&lt;/P&gt;&lt;P&gt;If I enable "HSADC_EnableInterrupts(DEMO_HSADC_BASEADDR, SADC_ConverterAEndOfScanInterruptEnable);",&lt;/P&gt;&lt;P&gt;the interrupt will not be generated. But I can see there is the scan end status if I check the state register.&lt;/P&gt;&lt;P&gt;Only way to generate the interrupt is enable any sample interrupt by using " &lt;SPAN style="font-size: small;"&gt;HSADC_EnableSampleResultReadyInterrupts(INETVU_HSADC0_BASEADDR, 0x0400, true);&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know why the scan end interrupt does not work in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2018 12:31:15 GMT</pubDate>
    <dc:creator>a8Chcx</dc:creator>
    <dc:date>2018-05-22T12:31:15Z</dc:date>
    <item>
      <title>HSADC on KV58F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755808#M46080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the sequence conversion sample to test HSADC on KV58F and works fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I want to use the scan end interrupt in stead of polling. I can't make the interrupt to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use software to trigger the conversion and I can see the scanA end already generated, but no the interrupt routine is called...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you&amp;nbsp;tell me why? How to make the interrupt to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 20:01:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755808#M46080</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2018-05-15T20:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC on KV58F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755809#M46081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christie,&lt;/P&gt;&lt;P&gt;You may need to add below codes:&lt;/P&gt;&lt;P&gt;void HSADC0_CCA_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HSADC_ClearStatusFlags(DEMO_HSADC_BASEADDR, kHSADC_ConverterAEndOfScanFlag);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;EnableIRQ(HSADC0_CCA_IRQn);&lt;/P&gt;&lt;P&gt;HSADC_EnableInterrupts(DEMO_HSADC_BASEADDR, kHSADC_ConverterAEndOfScanInterruptEnable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 09:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755809#M46081</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-05-17T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC on KV58F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755810#M46082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the same as what you said and can't trigger the scan end interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Then I add&lt;/P&gt;&lt;P&gt;" &lt;SPAN style="font-size: small;"&gt;HSADC_EnableSampleResultReadyInterrupts(INETVU_HSADC0_BASEADDR, 0x0400, true);&lt;/SPAN&gt;" for the last channel(11)&lt;/P&gt;&lt;P&gt;and it works.&lt;/P&gt;&lt;P&gt;2) If I disable "HSADC_EnableInterrupts(DEMO_HSADC_BASEADDR, SADC_ConverterAEndOfScanInterruptEnable);"&lt;/P&gt;&lt;P&gt;and it works as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if I use "scanEndInterrupt" in sequence scan? And what is your suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 11:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755810#M46082</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2018-05-17T11:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC on KV58F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755811#M46083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you please tell me which channel are you using? HSADC0A or HSADC0B&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ch11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48650iFA9FD732DCB47D8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ch11.png" alt="ch11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you connect external signal to PTE3, then you may need to :&lt;/P&gt;&lt;P&gt;void HSADC0_CC&lt;STRONG&gt;B&lt;/STRONG&gt;_IRQHandler(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; HSADC_ClearStatusFlags(DEMO_HSADC_BASEADDR, kHSADC_Converter&lt;STRONG&gt;B&lt;/STRONG&gt;EndOfScanFlag);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;EnableIRQ(HSADC0_CC&lt;STRONG&gt;B&lt;/STRONG&gt;_IRQn);&lt;/P&gt;&lt;P&gt;HSADC_EnableInterrupts(DEMO_HSADC_BASEADDR, kHSADC_Converter&lt;STRONG&gt;B&lt;/STRONG&gt;EndOfScanInterruptEnable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Conversion complete interrupts and Scan interrupts are different. Please read "41.6 Interrupts" in KV5XP144M240RM.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Conversion Complete and Scan Interrupt.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/42648i9F7413370DCF269B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Conversion Complete and Scan Interrupt.png" alt="Conversion Complete and Scan Interrupt.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HSADC_EnableInterrupts can be used to enable &lt;STRONG&gt;&lt;SPAN style="color: #ff00ff;"&gt;Conversion complete&lt;/SPAN&gt; interrupts&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HSADC_EnableInterrupts.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46677i55E08FBC83FD269B/image-size/large?v=v2&amp;amp;px=999" role="button" title="HSADC_EnableInterrupts.png" alt="HSADC_EnableInterrupts.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HSADC_EnableSampleResultReadyInterrupts is used to enable &lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Scan&lt;/SPAN&gt; interrupts&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HSADC_EnableSampleResultReadyInterrupts.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46624iD2131ED358ED22B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="HSADC_EnableSampleResultReadyInterrupts.png" alt="HSADC_EnableSampleResultReadyInterrupts.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 07:13:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755811#M46083</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-05-21T07:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC on KV58F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755812#M46084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I connect as follows:&lt;/P&gt;&lt;P&gt;HSADC0A ch0--&amp;gt;Pin18&lt;/P&gt;&lt;P&gt;HSADC0A ch1--&amp;gt;Pin19&lt;/P&gt;&lt;P&gt;HSADC0A ch2--&amp;gt;Pin27&lt;/P&gt;&lt;P&gt;HSADC0A ch3--&amp;gt;Pin28&lt;/P&gt;&lt;P&gt;HSADC0A ch4--&amp;gt;Pin37&lt;/P&gt;&lt;P&gt;HSADC0A ch5--&amp;gt;Pin38&lt;/P&gt;&lt;P&gt;HSADC0A ch6--&amp;gt;Pin23&lt;/P&gt;&lt;P&gt;HSADC0A ch7--&amp;gt;Pin24&lt;/P&gt;&lt;P&gt;HSADC0B ch3--&amp;gt;Pin82&lt;/P&gt;&lt;P&gt;HSADC0B ch4--&amp;gt;Pin45&lt;/P&gt;&lt;P&gt;HSADC0B ch5--&amp;gt;Pin46&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the sequential scan.&lt;/P&gt;&lt;P&gt;If I enable "HSADC_EnableInterrupts(DEMO_HSADC_BASEADDR, SADC_ConverterAEndOfScanInterruptEnable);",&lt;/P&gt;&lt;P&gt;the interrupt will not be generated. But I can see there is the scan end status if I check the state register.&lt;/P&gt;&lt;P&gt;Only way to generate the interrupt is enable any sample interrupt by using " &lt;SPAN style="font-size: small;"&gt;HSADC_EnableSampleResultReadyInterrupts(INETVU_HSADC0_BASEADDR, 0x0400, true);&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know why the scan end interrupt does not work in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 12:31:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755812#M46084</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2018-05-22T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC on KV58F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755813#M46085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any update on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what you find?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 16:17:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/HSADC-on-KV58F/m-p/755813#M46085</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2018-05-28T16:17:45Z</dc:date>
    </item>
  </channel>
</rss>

