<?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: ADC interrupt interfering with TI1 in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140712#M1341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am using a DSP56F807 with code warrior 7.0&lt;BR /&gt;&lt;BR /&gt;In my main file I call "TI1_OnInterrupt()", in the events file under this function I have:&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;AD1_Measure(TRUE);&lt;BR /&gt;AD1_GetValue(&amp;amp;adc_Buff[0]);&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Everything after the AD1 usage is math and data manipulation. Once again, this function will only execute one time if I enable the "Interrups service/event" in the ADC bean.&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Sam&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2006 01:45:35 GMT</pubDate>
    <dc:creator>spearce</dc:creator>
    <dc:date>2006-12-21T01:45:35Z</dc:date>
    <item>
      <title>ADC interrupt interfering with TI1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140710#M1339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using a periodic interrupt(TI1) which calls an ADC to perform a single sample each time an interrupt is received. If I enable the "Interrupt service/event" in the ADC bean then the periodic interrupt will only take place one time. No interrupts are being generated by the ADC, just switching it to enable creates this problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can only guess this problem is related to a register value. I have tried setting "Interrupt preserve registers" to yes or no in conjunction with(and without) commenting out "#pragma interrupt called". How do I get the periodic interrupt to call an ADC and allow the ADC to generate interrupts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;P&gt;Message Edited by spearce on &lt;SPAN class="date_text"&gt;2006-12-19&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:44 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by spearce on &lt;SPAN class="date_text"&gt;2006-12-19&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:49 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 05:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140710#M1339</guid>
      <dc:creator>spearce</dc:creator>
      <dc:date>2006-12-20T05:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: ADC interrupt interfering with TI1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140711#M1340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Which CPU you use? Which method you use to start conversion?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 23:30:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140711#M1340</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-12-20T23:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: ADC interrupt interfering with TI1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140712#M1341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am using a DSP56F807 with code warrior 7.0&lt;BR /&gt;&lt;BR /&gt;In my main file I call "TI1_OnInterrupt()", in the events file under this function I have:&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;AD1_Measure(TRUE);&lt;BR /&gt;AD1_GetValue(&amp;amp;adc_Buff[0]);&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Everything after the AD1 usage is math and data manipulation. Once again, this function will only execute one time if I enable the "Interrups service/event" in the ADC bean.&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Sam&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 01:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140712#M1341</guid>
      <dc:creator>spearce</dc:creator>
      <dc:date>2006-12-21T01:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: ADC interrupt interfering with TI1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140713#M1342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;There are 2 ways.&lt;BR /&gt;1. You need to disable "ADC on End" interrupt and use followed code - i.e. wait end of ADC conversion in the timer event.&lt;BR /&gt;2. Enable "ADC on End" interrupt. In the timer interrupt function use&lt;BR /&gt;AD1_Measure(FALSE); // run conversion&lt;BR /&gt;and in the ADC interrupt function - i.e. after conversion ended succesfully&lt;BR /&gt;AD1_GetValue(&amp;amp;adc_Buff[0]);&lt;P&gt;Message Edited by Alexey on &lt;SPAN class="date_text"&gt;2006-12-20&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:02 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 02:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/ADC-interrupt-interfering-with-TI1/m-p/140713#M1342</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-12-21T02:01:25Z</dc:date>
    </item>
  </channel>
</rss>

