<?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: AD1_OnMeasurementComplete Never Entered</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AD1-OnMeasurementComplete-Never-Entered/m-p/352367#M17469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you use pe to generate code, you should enable interrupt for ADC.&lt;/P&gt;&lt;P&gt;If ADC finish the measure, but interrupt is not enabled, the AD1_OnMeasurementComplete can’t enter, which is called in ADC_ISR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawei You（尤大为）&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 14:14:30 GMT</pubDate>
    <dc:creator>daweiyou</dc:creator>
    <dc:date>2014-10-27T14:14:30Z</dc:date>
    <item>
      <title>AD1_OnMeasurementComplete Never Entered</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AD1-OnMeasurementComplete-Never-Entered/m-p/352366#M17468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am have issues with implementing an AD measurement with the FRDM-KE06Z.&amp;nbsp; Here is my code to start the measurement that I have placed within a app_Init method that is called from main along with SPI and GPIO Init (those seem to be working fine):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; AD1device = AD1_Init((LDD_TUserData *)NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; AD1_measurement[0]=1; /*Used to confirm the value is being displayed*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; measure_count = 0; /*incremented in OnMeasureComplete*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LDD_TError Error;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Error = AD1_SelectSampleGroup(AD1device, 0U); /*Select sample group 0*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Error = AD1_StartLoopMeasurement(AD1device); /*Start continuous measurement*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Events.c I have:&lt;/P&gt;&lt;P&gt;void AD1_OnMeasurementComplete(LDD_TUserData *UserDataPtr)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your code here ... */&lt;/P&gt;&lt;P&gt; measure_count++;&lt;/P&gt;&lt;P&gt; LDD_TError Error;&lt;/P&gt;&lt;P&gt; Error = AD1_GetMeasuredValues(UserDataPtr, (LDD_TData *)AD1_measurement);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rest of my AD code is as generated by Processor Expert for the ADC_LDD component. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying the AD1_measurement and a measure_count on an LCD, and they never change from what I set them at.&amp;nbsp; I have confirmed if I change the values manually in code, the display shows the new values as expected.&amp;nbsp; So the problem is not with my display functions.&amp;nbsp; This tells me that the Ad1_OnMeasureComplete within Event.c is never entered.&amp;nbsp; Otherwise I would at least see measure_count update on my display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I am doing wrong to start the measurement? What are some other things that I should check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The this I am trying to read the output from an AD595 thermocouple amplifier IC.&amp;nbsp; I have measured the output from the AD595 at room temperature at around 200 mV which should equate to 20 C. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 18:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AD1-OnMeasurementComplete-Never-Entered/m-p/352366#M17468</guid>
      <dc:creator>thomasolenik</dc:creator>
      <dc:date>2014-10-26T18:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: AD1_OnMeasurementComplete Never Entered</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/AD1-OnMeasurementComplete-Never-Entered/m-p/352367#M17469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you use pe to generate code, you should enable interrupt for ADC.&lt;/P&gt;&lt;P&gt;If ADC finish the measure, but interrupt is not enabled, the AD1_OnMeasurementComplete can’t enter, which is called in ADC_ISR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dawei You（尤大为）&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 14:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/AD1-OnMeasurementComplete-Never-Entered/m-p/352367#M17469</guid>
      <dc:creator>daweiyou</dc:creator>
      <dc:date>2014-10-27T14:14:30Z</dc:date>
    </item>
  </channel>
</rss>

