<?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>S12 / MagniV MicrocontrollersのトピックRe: ATD module on HCS12DP256 Overflow Error?</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124995#M228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;The term "system overflow" in the hint of the Start method means, that the conversion is so fast that when the ATD service routine is completed (including the code in the OnEnd event) there is already another conversion ready so the service routine is executed again and again. Thus, the system is stuck in an infinite loop.&lt;BR /&gt;&lt;BR /&gt;Here are some tips to avoid this situation:&lt;BR /&gt;&lt;BR /&gt;- Increase the total conversion time, either by increasing&lt;BR /&gt;conversion time or sample time.&lt;BR /&gt;- Enable the Autoscan property, when consecutive channels are used.&lt;BR /&gt;The ATD then fires and interrupt only when conversion of all&lt;BR /&gt;channels is completed, not after every channel.&lt;BR /&gt;- If the continuous measurement is not necessary, use Measure&lt;BR /&gt;method instead of Start method.&lt;BR /&gt;- If the conversion time is really short, is it really necessary&lt;BR /&gt;to use interrupts?&lt;BR /&gt;- Disabling the EnableEvent/DisableEvent methods can also bring&lt;BR /&gt;a small ISR execution speed increase.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Petr Hradsky&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;UNIS&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2006 16:55:42 GMT</pubDate>
    <dc:creator>ProcessorExpert</dc:creator>
    <dc:date>2006-07-27T16:55:42Z</dc:date>
    <item>
      <title>ATD module on HCS12DP256 Overflow Error?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124994#M227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am working with an HCS12DP256 processor.&amp;nbsp; The application that I am writing requires that an interrupt be generated by the ATD module completes 1 conversion on all 8 of its channels.&amp;nbsp; I used Processor Expert to configure the ATD module.&amp;nbsp; Processor Expert had a tool tip on the "conversion time" attribute that stated that if the conversion time was set too short, that it may cause the system to overflow.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've tried looking for information regarding error conditions on the ATD module, and I have not found any information on it.&amp;nbsp; Does anyone out there have any information on an ATD system overflow?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The reason I ask, is that occassionally, it looks like the ATD module is triggering an interrupt continously.&amp;nbsp; When I increased the conversion time, it stopped doing this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks. &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;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:14:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124994#M227</guid>
      <dc:creator>mcu_guy</dc:creator>
      <dc:date>2006-07-26T19:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: ATD module on HCS12DP256 Overflow Error?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124995#M228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;The term "system overflow" in the hint of the Start method means, that the conversion is so fast that when the ATD service routine is completed (including the code in the OnEnd event) there is already another conversion ready so the service routine is executed again and again. Thus, the system is stuck in an infinite loop.&lt;BR /&gt;&lt;BR /&gt;Here are some tips to avoid this situation:&lt;BR /&gt;&lt;BR /&gt;- Increase the total conversion time, either by increasing&lt;BR /&gt;conversion time or sample time.&lt;BR /&gt;- Enable the Autoscan property, when consecutive channels are used.&lt;BR /&gt;The ATD then fires and interrupt only when conversion of all&lt;BR /&gt;channels is completed, not after every channel.&lt;BR /&gt;- If the continuous measurement is not necessary, use Measure&lt;BR /&gt;method instead of Start method.&lt;BR /&gt;- If the conversion time is really short, is it really necessary&lt;BR /&gt;to use interrupts?&lt;BR /&gt;- Disabling the EnableEvent/DisableEvent methods can also bring&lt;BR /&gt;a small ISR execution speed increase.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Petr Hradsky&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;UNIS&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 16:55:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124995#M228</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2006-07-27T16:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: ATD module on HCS12DP256 Overflow Error?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124996#M229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Thanks for the clarification.&amp;nbsp; &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;I do have a followup question...&lt;/P&gt;&lt;P&gt;If I call the ATD_Stop() method in my ATD interrupt service routine would it prevent the "system overflow" from occuring (assuming I don't slow down the conversion rate)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 19:37:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124996#M229</guid>
      <dc:creator>mcu_guy</dc:creator>
      <dc:date>2006-07-27T19:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: ATD module on HCS12DP256 Overflow Error?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124997#M230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes, calling the Stop() method will stop the continuos conversion and the system won't overflow. &lt;BR /&gt;However, it's no use to start continuos conversion if you plan just one measurement. Then it's better to use the Measure method, which will do just one measurement and call the On_End event once (if the Interrupt service is enabled).&lt;BR /&gt;best regards&lt;BR /&gt;Petr Hradsky&lt;BR /&gt;Processor Expert Support Team&lt;BR /&gt;UNIS&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 13:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ATD-module-on-HCS12DP256-Overflow-Error/m-p/124997#M230</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2006-07-28T13:52:38Z</dc:date>
    </item>
  </channel>
</rss>

