<?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>Kinetis MicrocontrollersのトピックRe: MKM34 ADC</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651534#M39664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Druv,&lt;/P&gt;&lt;P&gt;SAR ADC on MKM34 can perform up to four sequential conversions triggered by hardware (not simultaneous). Simultaneous conversion can be done only using SD ADC. If you want to trigger SAR ADC sequential conversion(s), you can use QuadTimer channel(s). For example, triggering SAR ADC from SD ADC is explained in&amp;nbsp;this thread:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/436631"&gt;MKM34Z256VLL7 ADC conversion&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Martin M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 12:27:52 GMT</pubDate>
    <dc:creator>MarMi</dc:creator>
    <dc:date>2017-01-30T12:27:52Z</dc:date>
    <item>
      <title>MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651533#M39663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Hi Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;I have designed the board with MKM34 Device(64-LQFP). I wanted to measure the AD0 to AD6 Channels simultaneously. The sensing inputs are connected to the channels directly. I am unable to find the example for the multiple channels scanning. Could anyone suggest me to configure the device for ADC triggering? I have to use the on-chip crystal for the above measurement.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Looking for your valuable suggestions and example for the same. Please suggest..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Thanks&amp;amp;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Dhruv&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 08:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651533#M39663</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2017-01-30T08:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651534#M39664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Druv,&lt;/P&gt;&lt;P&gt;SAR ADC on MKM34 can perform up to four sequential conversions triggered by hardware (not simultaneous). Simultaneous conversion can be done only using SD ADC. If you want to trigger SAR ADC sequential conversion(s), you can use QuadTimer channel(s). For example, triggering SAR ADC from SD ADC is explained in&amp;nbsp;this thread:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/436631"&gt;MKM34Z256VLL7 ADC conversion&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Martin M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 12:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651534#M39664</guid>
      <dc:creator>MarMi</dc:creator>
      <dc:date>2017-01-30T12:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651535#M39665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Hi Martin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Thanks for the support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;I have to measure the &lt;STRONG&gt;All the&lt;/STRONG&gt;&amp;nbsp;channels. There are no additional&amp;nbsp;trigger signals available to trigger the channel. I have to use the SW_triggering. We have to measure the all the sensing signals(Temperatures) from all the channels serially or sequentially. I have referred the code shared by you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;I have modified the code in that project as given below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;ADC_Init (ADC_MODULE_16B_SWTRG_XREF_CONFIG,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;HWAVG_32,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;ADC_CH_SE_POLL_CONFIG(AD7),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;ADC_CH_SE_POLL_CONFIG(AD8),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;ADC_CH_SE_POLL_CONFIG(AD9),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;ADC_CH_SE_IRQ_CONFIG&amp;nbsp;(AD10),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;PRI_LVL0, (ADC_CALLBACK)adc_callback);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;But I am not getting the output. Could you please suggest the changes required. Please suggest the suitable flow or code for that.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Druv&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 13:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651535#M39665</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2017-01-30T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651536#M39666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Druv,&lt;/P&gt;&lt;P&gt;for measuring five or more channels you need to trigger conversions in software. I have attached &lt;EM&gt;adc_test.c&lt;/EM&gt; example from bare metal drivers package that shows way of triggering conversion in software.&amp;nbsp;For measuring more channels, you need to Start, Check completeness and Read conversion for each channel in a sequence as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;ADC_Start(CHA, AD7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;while(!ADC_Ready(CHA));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;value_1 = ADC_Read(CHA);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;ADC_Start(CHA, AD8);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;while(!ADC_Ready(CHA));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;value_2 = ADC_Read(CHA);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'courier new', courier, monospace;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Martin M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 13:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651536#M39666</guid>
      <dc:creator>MarMi</dc:creator>
      <dc:date>2017-01-30T13:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651537#M39667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Hi Martin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Now I am getting the result with all the channels. But it's polling method. How to add interrupt based measurement with all the 5 channels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Thanks,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Druv&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 14:39:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651537#M39667</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2017-01-30T14:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651538#M39668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Druv,&lt;/P&gt;&lt;P&gt;look at attached simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Martin M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 16:51:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651538#M39668</guid>
      <dc:creator>MarMi</dc:creator>
      <dc:date>2017-01-30T16:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651539#M39669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Hi Martin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;It's working with my board. Thanks for the support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11px; font-family: 'courier new', courier, monospace;"&gt;Druv&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 05:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651539#M39669</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2017-01-31T05:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651540#M39670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to add &lt;STRONG&gt;DMA&lt;/STRONG&gt; support with the given example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Druv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 05:52:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651540#M39670</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2017-01-31T05:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651541#M39671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Druv,&lt;/P&gt;&lt;P&gt;it doesn't make sense to use DMA in case when software need to jump to interrupt to start conversion on new channel. If you want optimize your use-case to lower power consumption you should consider two DMA transfers:&lt;/P&gt;&lt;P&gt;1) First to be triggered by PIT and used to kick off new conversion by loading ADC_SC1A register with new channel number; PIT trigger frequency will define ADC conversion rate.&lt;/P&gt;&lt;P&gt;2) Second to be triggered by ADC end of conversion to store result of conversion in a memory table. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are couple of DMA examples in:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-333437"&gt;Kinetis M bare-metal drivers and software examples released - REV 4.1.6&lt;/A&gt;. Please refer to refman.html, Section DMA examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Martin M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 08:11:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651541#M39671</guid>
      <dc:creator>MarMi</dc:creator>
      <dc:date>2017-01-31T08:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: MKM34 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651542#M39672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK. I will check and add it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Druv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:21:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKM34-ADC/m-p/651542#M39672</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2017-02-02T07:21:31Z</dc:date>
    </item>
  </channel>
</rss>

