<?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: Continuous conversion ADC interrupt pause in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Continuous-conversion-ADC-interrupt-pause/m-p/907787#M15079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested that i could stop the continuous conversion using the ATDCTL5 register. And after testing, i noticed that the ADC conversion interrupt paused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way,&amp;nbsp; After raising a question and thinking for a few days, I thought i didn't have to pause the ADC interrupt in my assignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for answering the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day :smileyhappy:&lt;/P&gt;&lt;P&gt;Ji Hyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2019 07:25:46 GMT</pubDate>
    <dc:creator>o4543</dc:creator>
    <dc:date>2019-05-15T07:25:46Z</dc:date>
    <item>
      <title>Continuous conversion ADC interrupt pause</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Continuous-conversion-ADC-interrupt-pause/m-p/907785#M15077</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;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I used MC9S12XET256 chip.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I used the continuous conversion interrupt to output the ADC value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I want to turn off this interrupt. But it does not completely disable interrupts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In other words, I want to control the use of interrupts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I tried using the flags, but it fell into an infinite loop. And I changed the interrupt flag to disable and it did not work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;I can't find solutions. What should i do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 02:51:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Continuous-conversion-ADC-interrupt-pause/m-p/907785#M15077</guid>
      <dc:creator>o4543</dc:creator>
      <dc:date>2019-05-10T02:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous conversion ADC interrupt pause</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Continuous-conversion-ADC-interrupt-pause/m-p/907786#M15078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Hmmm, continuous conversion with interrupt. Why? How long does it take to process data. Normally when I use continuous conversion I only get data from data registers and I know there are the last data there. If the conversion set converted faster than interrupt is done then a new flag is set. Where is the place you disable interrupt? Incorrect placement can lead to never ending loop or something which looks like never ending loop. For mi it looks like incorrectly selected algorithm.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;BTW, do not mix clearing flags “fast flag clear” with manual clearing. The experience says me it can do some issues, I do am not able to explain but this is an experience.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;When you want to stop continuous conversion you can also write to ATDCTL5 by selecting single conversion which performs only one more conversion set, calls isr if enabled and stop. Writing to ATDCTL5 stops last conversion and starts a new one. The period of your conversion set really sets the rules. What is your application? Probably approach with continuous mode without interrupt could be better.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Could you share your code to be able to analyze it and provide the best way of solution?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Best regards,&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 16:28:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Continuous-conversion-ADC-interrupt-pause/m-p/907786#M15078</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2019-05-14T16:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous conversion ADC interrupt pause</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Continuous-conversion-ADC-interrupt-pause/m-p/907787#M15079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested that i could stop the continuous conversion using the ATDCTL5 register. And after testing, i noticed that the ADC conversion interrupt paused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way,&amp;nbsp; After raising a question and thinking for a few days, I thought i didn't have to pause the ADC interrupt in my assignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for answering the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day :smileyhappy:&lt;/P&gt;&lt;P&gt;Ji Hyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 07:25:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Continuous-conversion-ADC-interrupt-pause/m-p/907787#M15079</guid>
      <dc:creator>o4543</dc:creator>
      <dc:date>2019-05-15T07:25:46Z</dc:date>
    </item>
  </channel>
</rss>

