<?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: mc9s08dz60 gpio interrupt falling edge only? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238598#M19545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello bigmac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your solution but still doesn't work even combined with David solution.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I base my assumption that rising edge is not support also by device expert which states that none of the GPIOs ports supports&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;rising edge not only by not getting interrupt.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 09:13:21 GMT</pubDate>
    <dc:creator>ngsoftuser</dc:creator>
    <dc:date>2013-06-26T09:13:21Z</dc:date>
    <item>
      <title>mc9s08dz60 gpio interrupt falling edge only?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238594#M19541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an external peripheral which is connected to port D3.&lt;/P&gt;&lt;P&gt;I set this port as interruptable.&lt;/P&gt;&lt;P&gt;My problem is that the interrupt is called only on falling edge. The pdf doesn't mention any thing about falling edge only.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my init sequence:&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;PTDSC_PTDIE = 0;&lt;/TD&gt;&lt;TD style=""&gt;//first disable interrupt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;PTDPS_PTDPS3 = 1;&amp;nbsp;&amp;nbsp; //Enable the interrupt pin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;PTDSC_PTDACK = 1; //Clear any false interrupts&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;PTDSC_PTDIE = 1; //enable interrupts&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;PTDDD_PTDDD3 = 0; //input&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:10:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238594#M19541</guid>
      <dc:creator>ngsoftuser</dc:creator>
      <dc:date>2013-06-25T14:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08dz60 gpio interrupt falling edge only?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238595#M19542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't find the reference manual for this part, but I use the MC9S08LL8. Do you have a&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;"Interrupt Pin Request Status and Control Register" (IRQSC). If so, try setting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IRQMOD (bit 0) to 1 to allow interrupts on falling and rising edges.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:58:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238595#M19542</guid>
      <dc:creator>DRichards</dc:creator>
      <dc:date>2013-06-25T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08dz60 gpio interrupt falling edge only?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238596#M19543</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;Add the following to your initialisation code -&lt;/P&gt;&lt;P&gt;PTDES_PTDES3 = 1;&amp;nbsp; // Interrupt on positive edge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also be aware that, if enabled, there will be an internal pull-down, rather than pull-up, for the pin.&amp;nbsp; This may not suit all situations.&amp;nbsp; If a pull-up is required, this would need to be an external resistor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 15:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238596#M19543</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-06-25T15:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08dz60 gpio interrupt falling edge only?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238597#M19544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your solution but still doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 09:12:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238597#M19544</guid>
      <dc:creator>ngsoftuser</dc:creator>
      <dc:date>2013-06-26T09:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08dz60 gpio interrupt falling edge only?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238598#M19545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello bigmac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your solution but still doesn't work even combined with David solution.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I base my assumption that rising edge is not support also by device expert which states that none of the GPIOs ports supports&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;rising edge not only by not getting interrupt.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 09:13:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238598#M19545</guid>
      <dc:creator>ngsoftuser</dc:creator>
      <dc:date>2013-06-26T09:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s08dz60 gpio interrupt falling edge only?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238599#M19546</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;BLOCKQUOTE&gt;
&lt;P&gt;eran yasso wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I base my assumption that rising edge is not support also by device expert which states that none of the GPIOs ports supports&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;rising edge not only by not getting interrupt.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I refer you to section 6.3 Pin Interrupts, within the 'DZ60 datasheet.&amp;nbsp; Fig. 6.2 clearly shows that edge selection is provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There could be other reasons why interrupts are not occurring, e.g. not having the correct vector address associated with the ISR.&amp;nbsp; As mentioned previously, there can be hardware incompatibility with the external peripheral device, especially if it provides an "open-drain" output.&amp;nbsp; In this case you would need to disable the internal pull-down, and provide a suitable external pull-up resistor, for interrupts to work on the positive edge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 17:34:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/mc9s08dz60-gpio-interrupt-falling-edge-only/m-p/238599#M19546</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-06-26T17:34:44Z</dc:date>
    </item>
  </channel>
</rss>

