<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Help required regarding writing the drivers for ADC on MCF5441x processor</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-required-regarding-writing-the-drivers-for-ADC-on-MCF5441x/m-p/190663#M8275</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;There are various configuration possibilities and so these must first be correctly defined before starting a conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Tom points out, two important ones are:&lt;/P&gt;&lt;P&gt;- applying power to the ADC module (the flag(s) for the module(s) used is/are cleared in the register ADC_POWER)&lt;/P&gt;&lt;P&gt;- enabling the channel(s) to be used (clearing the channel(s) flag(s) in ADC_ADSDIS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once these are set up as required clearing the STOP0 bit and setting the START0 in ADC_CTRL1 should start the operation.&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;Mark&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>Mon, 27 Aug 2012 03:45:41 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2012-08-27T03:45:41Z</dc:date>
    <item>
      <title>Help required regarding writing the drivers for ADC on MCF5441x processor</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-required-regarding-writing-the-drivers-for-ADC-on-MCF5441x/m-p/190661#M8273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am working on MCF5441x processor and configuring the ADC channels to read the Battery level of the device.&lt;/P&gt;&lt;P&gt;The problem i am facing is the START0 bit of the ADC_CR1 register is not at all getting set to start the conversion. the steps i used is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_ADC_CR1 |= MCF_ADC_CR1_STOP0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_ADC_CR1 &amp;amp;= ~MCF_ADC_CR1_STOP0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_ADC_CR1 |= MCF_ADC_CR1_START0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Even i tried by removing the above two lines, since at reset the scan will b in stop mode. As per the reference manual it says there should be stable power mode, i have made only the ADC1(since i am using only channel 0-3) to power up by:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_ADC_PWR &amp;amp;= ~(MCF_ADC_PWR_PD0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(MCF_ADC_PWR &amp;amp; MCF_ADC_PWR_PSTS0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Any help regarding this will be appreciated, Thank you in advance&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif"&gt;&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 13:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-required-regarding-writing-the-drivers-for-ADC-on-MCF5441x/m-p/190661#M8273</guid>
      <dc:creator>hemanth_mansi</dc:creator>
      <dc:date>2012-08-22T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help required regarding writing the drivers for ADC on MCF5441x processor</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-required-regarding-writing-the-drivers-for-ADC-on-MCF5441x/m-p/190662#M8274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The manual shows more steps than you've listed in your email, specifically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;29.5.8 Power Management DetailsWhen starting up in normal mode:1. Set PUDELAY to the large power up value.2. Clear auto standby (ASB) and auto power down (APD) bits.3. Clear PD0 and PD1 to power up the required converters.4. Poll ADC_PWR[PSTSn] until all required converters are powered up.&lt;/PRE&gt;&lt;P&gt;Those bits may default properly from reset, but it is preferable to follow all steps in case the code is reused when these conditions might not be true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd suggest checking all possible status bits in all ADC registers against their documented values and meanings too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-required-regarding-writing-the-drivers-for-ADC-on-MCF5441x/m-p/190662#M8274</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2020-10-29T09:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help required regarding writing the drivers for ADC on MCF5441x processor</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-required-regarding-writing-the-drivers-for-ADC-on-MCF5441x/m-p/190663#M8275</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;There are various configuration possibilities and so these must first be correctly defined before starting a conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Tom points out, two important ones are:&lt;/P&gt;&lt;P&gt;- applying power to the ADC module (the flag(s) for the module(s) used is/are cleared in the register ADC_POWER)&lt;/P&gt;&lt;P&gt;- enabling the channel(s) to be used (clearing the channel(s) flag(s) in ADC_ADSDIS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once these are set up as required clearing the STOP0 bit and setting the START0 in ADC_CTRL1 should start the operation.&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;Mark&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>Mon, 27 Aug 2012 03:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Help-required-regarding-writing-the-drivers-for-ADC-on-MCF5441x/m-p/190663#M8275</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2012-08-27T03:45:41Z</dc:date>
    </item>
  </channel>
</rss>

