<?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: shared adc component in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/shared-adc-component/m-p/194396#M693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do it now using the K70 tower module? I have to digitize 3 different signals and show them in a TWR-LCD-RGB. I want to use the tower elevator connections so I have no access to ADC2 or ADC3. When I create my first ADC0 and ADC1 objects in ProcessorExpert, it works fine; however, when I create the other one, using ADC0 or ADC1 in a different pin, it says that AD converter is already used by the other component, and if I enable the sharing option it says that this mode isn't supported on this version of module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I accomplish my 3 simultaneous ADC reads?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elisa &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 17:58:37 GMT</pubDate>
    <dc:creator>elisamejia</dc:creator>
    <dc:date>2015-11-12T17:58:37Z</dc:date>
    <item>
      <title>shared adc component</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/shared-adc-component/m-p/194394#M691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Is it possible to create shared ADC component on Kinetis K60 ? I have to get values from 4 pins on ADC0 and ADC1 . It would be more elegant to do not have duplicated code like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_1347876270102295 jive_text_macro jive_macro_code" jivemacro_uid="_1347876270102295" modifiedtitle="true"&gt;
&lt;P&gt;LDD_TError Adc0_GetMeasuredValues(LDD_TDeviceData *DeviceDataPtr, LDD_TData *BufferPtr)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; uint8_t Sample;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AdConv0_TResultData *pBuffer = (AdConv0_TResultData *)BufferPtr;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Copy values from result registers defined in the active sample&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group to the user supplied buffer */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for (Sample = 0U; Sample &amp;lt; ((AdConv0_TDeviceDataPtr)DeviceDataPtr)-&amp;gt;SampleCount; Sample++) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pBuffer[Sample] = (uint16_t)(ADC_PDD_GetResultValueRaw(ADC0_BASE_PTR, Sample));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return ERR_OK;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* OK */&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;SPAN class="mce_paste_marker"&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13478762504382467" jivemacro_uid="_13478762504382467" modifiedtitle="true"&gt;
&lt;P&gt;LDD_TError Adc1_GetMeasuredValues(LDD_TDeviceData *DeviceDataPtr, LDD_TData *BufferPtr)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; uint8_t Sample;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AdConv1_TResultData *pBuffer = (AdConv1_TResultData *)BufferPtr;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Copy values from result registers defined in the active sample&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group to the user supplied buffer */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sample = ((AdConv1_TDeviceDataPtr)DeviceDataPtr)-&amp;gt;SampleCount;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for (Sample = 0U; Sample &amp;lt; ((AdConv1_TDeviceDataPtr)DeviceDataPtr)-&amp;gt;SampleCount; Sample++) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pBuffer[Sample] = (uint16_t)(ADC_PDD_GetResultValueRaw(ADC1_BASE_PTR, Sample));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return ERR_OK;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* OK */&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;SPAN class="mce_paste_marker"&gt;
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/shared-adc-component/m-p/194394#M691</guid>
      <dc:creator>bataliero</dc:creator>
      <dc:date>2020-10-29T09:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: shared adc component</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/shared-adc-component/m-p/194395#M692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as I know that this is not currently supported in ADC. Anyway I have passed this as feature request to developers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 09:36:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/shared-adc-component/m-p/194395#M692</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2012-09-18T09:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: shared adc component</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/shared-adc-component/m-p/194396#M693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do it now using the K70 tower module? I have to digitize 3 different signals and show them in a TWR-LCD-RGB. I want to use the tower elevator connections so I have no access to ADC2 or ADC3. When I create my first ADC0 and ADC1 objects in ProcessorExpert, it works fine; however, when I create the other one, using ADC0 or ADC1 in a different pin, it says that AD converter is already used by the other component, and if I enable the sharing option it says that this mode isn't supported on this version of module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I accomplish my 3 simultaneous ADC reads?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Elisa &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 17:58:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/shared-adc-component/m-p/194396#M693</guid>
      <dc:creator>elisamejia</dc:creator>
      <dc:date>2015-11-12T17:58:37Z</dc:date>
    </item>
  </channel>
</rss>

