<?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: Default interrupt error using ADC on Kinteis FRDM board in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-interrupt-error-using-ADC-on-Kinteis-FRDM-board/m-p/271283#M9205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt; SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jun 2013 21:04:23 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2013-06-03T21:04:23Z</dc:date>
    <item>
      <title>Default interrupt error using ADC on Kinteis FRDM board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-interrupt-error-using-ADC-on-Kinteis-FRDM-board/m-p/271282#M9204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Trying to build a simple A to D application on the FRDM KL25 board. I am using ADC0 attached to pin PTC1.&amp;nbsp; Using Codewarrior 10.3 and as I step through the code it goes directly to a default interrupt handler the moment I step into any command that attempts to initialize an ADC register.&amp;nbsp; For example in the intialization ADC0_CFG1=0x4; will cause an interrupt which has no handler defined so it goes to default.&amp;nbsp; I suspect I am making a simple error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Initialize PTC1 as ADC15&amp;nbsp; A to D &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5|=SIM_SCGC5_PORTC_MASK;&amp;nbsp;&amp;nbsp; //&amp;nbsp; Turn on clock for port C&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Convert the specific pins to the ADC module ( ADC is default). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTC_PCR(1)=PORT_PCR_MUX(0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC0_CFG1=0x4;&amp;nbsp;&amp;nbsp; //&amp;nbsp; 12 bit conversion, single ended, full speed bus&amp;nbsp; clock normal operation&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;interrupt occurs here&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC0_CFG2=0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt;&amp;lt; or here if I have the above line commented out...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 19:52:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-interrupt-error-using-ADC-on-Kinteis-FRDM-board/m-p/271282#M9204</guid>
      <dc:creator>mattgallagher</dc:creator>
      <dc:date>2013-06-03T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt error using ADC on Kinteis FRDM board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-interrupt-error-using-ADC-on-Kinteis-FRDM-board/m-p/271283#M9205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt; SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 21:04:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-interrupt-error-using-ADC-on-Kinteis-FRDM-board/m-p/271283#M9205</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-06-03T21:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Default interrupt error using ADC on Kinteis FRDM board</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-interrupt-error-using-ADC-on-Kinteis-FRDM-board/m-p/271284#M9206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Jim Donelson wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will fix your default_isr issue. The module's Clock Gate control must be enabled in the appropriate SIM_SCGCx register.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 22:02:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Default-interrupt-error-using-ADC-on-Kinteis-FRDM-board/m-p/271284#M9206</guid>
      <dc:creator>martynhunt</dc:creator>
      <dc:date>2013-06-03T22:02:54Z</dc:date>
    </item>
  </channel>
</rss>

