<?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 help configuring ADC in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209232#M10115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello everybody. this is my first time in this forum recently i bought a demoqe128 module for a project but i have some issues configuring the adc for reading a channel (AD0)and then another channel(AD1) i will appreciate your help with a small example for guidance... thanks for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jun 2010 20:32:14 GMT</pubDate>
    <dc:creator>dapuello</dc:creator>
    <dc:date>2010-06-26T20:32:14Z</dc:date>
    <item>
      <title>help configuring ADC</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209232#M10115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hello everybody. this is my first time in this forum recently i bought a demoqe128 module for a project but i have some issues configuring the adc for reading a channel (AD0)and then another channel(AD1) i will appreciate your help with a small example for guidance... thanks for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jun 2010 20:32:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209232#M10115</guid>
      <dc:creator>dapuello</dc:creator>
      <dc:date>2010-06-26T20:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: help configuring ADC</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209233#M10116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dapuello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try searching for QE128QRUGSW.zip.&lt;/P&gt;&lt;P&gt;It has all the peripherals demo codes.&lt;/P&gt;&lt;P&gt;I learned a lot from those demos.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 10:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209233#M10116</guid>
      <dc:creator>FWFan</dc:creator>
      <dc:date>2010-07-21T10:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: help configuring ADC</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209234#M10117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm assuming here that you have configured your ADC in software polled mode in single conversion not continuous conversion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To initiate a conversion you write to ADCSC1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More specifically you need to change the last 5 bits of the register the ADCH section.&amp;nbsp; These last five bits select the ADC channel that you wish to convert from.&amp;nbsp; This information may be found on page 222 of the MCF51QE128 reference manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your program structure would be something like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Configure your ADC module in single conversion software polled mode and select AD0 and AD1 in your pin control registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Change the value of ADCSC1 to the convert the relevant channel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Wait for the COCO flag to be set for the conversion to be completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Read the data out of the Data registers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you could use interrupts instead but this is just a simple example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you would like some C code to demonstrate please ask.&amp;nbsp; I also suggest that you read the chapter in your reference manual on your ADC module thoroughly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave Wright&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 20:36:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209234#M10117</guid>
      <dc:creator>David_UCT</dc:creator>
      <dc:date>2010-08-10T20:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: help configuring ADC</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209235#M10118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 07:31:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/help-configuring-ADC/m-p/209235#M10118</guid>
      <dc:creator>dapuello</dc:creator>
      <dc:date>2010-08-11T07:31:15Z</dc:date>
    </item>
  </channel>
</rss>

