<?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: Trigger Multiple ADC readings on PIT in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-Multiple-ADC-readings-on-PIT/m-p/1511952#M63889</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I suggest downloading the SDK of the FRDM-KE15 this has some examples with the ADC, I mean you can port to your target.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1661463944933.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191338iDB64F286E88F3C5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1661463944933.png" alt="Pavel_Hernandez_0-1661463944933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2022 21:45:56 GMT</pubDate>
    <dc:creator>Pavel_Hernandez</dc:creator>
    <dc:date>2022-08-25T21:45:56Z</dc:date>
    <item>
      <title>Trigger Multiple ADC readings on PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-Multiple-ADC-readings-on-PIT/m-p/1509648#M63865</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I am using&amp;nbsp;MKE14F512VLH16 microcontroller with the latest MCUXpresso IDE.&lt;/P&gt;&lt;P&gt;I need to read multiple ADC channels periodically so I think that the most eficient solution is to trigger ADC readings using a PIT timer.&lt;/P&gt;&lt;P&gt;The problem is that I can only start one convertion at once so maybe using eDMA to launch multiple channel readings is the way to do it.&lt;/P&gt;&lt;P&gt;So I have the PIT Timer triggering the eDMA transfer from a vector where I have the ADC channel that needs to be read to the ADC0&amp;nbsp;Status and Control Register 1.&lt;/P&gt;&lt;P&gt;Then I have a eDMA to copy the result of the ADC convertion to a vector of results.&lt;/P&gt;&lt;P&gt;But it seems to not be workins since I dont see value of the channels to read get loaded on the ADC&amp;nbsp;SC1 register. I thing it is a problem on my eDMA configuration or in the PIT triggering configuration.&lt;/P&gt;&lt;P&gt;The configuration is the next.&lt;/P&gt;&lt;P&gt;For the PIT Perihperal and pit trigger multiplexing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmandoPinedaMedina_1-1661185904620.png" style="width: 688px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190902i052080EAA2B55FD1/image-dimensions/688x550?v=v2" width="688" height="550" role="button" title="ArmandoPinedaMedina_1-1661185904620.png" alt="ArmandoPinedaMedina_1-1661185904620.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then the configuration of the ADC is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmandoPinedaMedina_0-1661186001421.png" style="width: 689px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190903i84D0A80503EDDD38/image-dimensions/689x556?v=v2" width="689" height="556" role="button" title="ArmandoPinedaMedina_0-1661186001421.png" alt="ArmandoPinedaMedina_0-1661186001421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;An the DMA:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmandoPinedaMedina_1-1661186038736.png" style="width: 707px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190904i5DC016AAF8C45364/image-dimensions/707x255?v=v2" width="707" height="255" role="button" title="ArmandoPinedaMedina_1-1661186038736.png" alt="ArmandoPinedaMedina_1-1661186038736.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;DMA Ch0:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmandoPinedaMedina_2-1661186152288.png" style="width: 687px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190905iC372F8B2ACF66DBC/image-dimensions/687x1150?v=v2" width="687" height="1150" role="button" title="ArmandoPinedaMedina_2-1661186152288.png" alt="ArmandoPinedaMedina_2-1661186152288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;/* Enable ADC channel 2 configuration - 0x10 , 0x11 */&lt;BR /&gt;AT_NONCACHEABLE_SECTION_INIT(uint32_t adc_trigger[2]) = {10U, 11U};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;DMA Ch1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ArmandoPinedaMedina_3-1661186305169.png" style="width: 700px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190906iE1987AA2C9149CD6/image-dimensions/700x1053?v=v2" width="700" height="1053" role="button" title="ArmandoPinedaMedina_3-1661186305169.png" alt="ArmandoPinedaMedina_3-1661186305169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;/* Result buffer with ADC measurement output */&lt;BR /&gt;AT_NONCACHEABLE_SECTION_INIT(uint32_t ADC_RESULTS[2]) = {0};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 22 Aug 2022 16:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-Multiple-ADC-readings-on-PIT/m-p/1509648#M63865</guid>
      <dc:creator>ArmandoPinedaMedina</dc:creator>
      <dc:date>2022-08-22T16:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Multiple ADC readings on PIT</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-Multiple-ADC-readings-on-PIT/m-p/1511952#M63889</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I suggest downloading the SDK of the FRDM-KE15 this has some examples with the ADC, I mean you can port to your target.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1661463944933.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191338iDB64F286E88F3C5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1661463944933.png" alt="Pavel_Hernandez_0-1661463944933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 21:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trigger-Multiple-ADC-readings-on-PIT/m-p/1511952#M63889</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2022-08-25T21:45:56Z</dc:date>
    </item>
  </channel>
</rss>

