<?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>8-bit MicrocontrollersのトピックRe: Input Capture Interrupt</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161624#M9832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocco&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; No I did not plan on using the input capture timing function as such, I just wanted to us its interrupts.&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 05:26:54 GMT</pubDate>
    <dc:creator>Dougq5x</dc:creator>
    <dc:date>2011-08-24T05:26:54Z</dc:date>
    <item>
      <title>Input Capture Interrupt</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161622#M9830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would like to use 2 input capture pins to cause interrupts from a quadrature switch.&amp;nbsp; It is a MC9S08AW16 processor and I am using PTE2 and PTE5.&amp;nbsp; In the TPM1C0SC and TPM2C1SC registers I initialized $4C in order to enable the pins as input capture interrupts using either positive or negative going edges.&amp;nbsp; I set the vectors $FFF4 and $FFE4 to point to the starting addresses of the 2 interrupt service routines.&amp;nbsp; I cleared the I bit in the CCR using the CLI instruction.&amp;nbsp; In the debugger, I can see the pins changing, but if I set&amp;nbsp; breakpoints for the starting addresses of the interrupt service routines and GO, the program runs but I never take the interrupt.&amp;nbsp; I have successfully used this degugger technique to witness other&amp;nbsp;interrupts, but for these interrupts I get nothing.&amp;nbsp; Do I have to initialize any of the other input capture counter or modulus registers in order to use the interrupts?&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 03:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161622#M9830</guid>
      <dc:creator>Dougq5x</dc:creator>
      <dc:date>2011-08-24T03:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture Interrupt</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161623#M9831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you enable the counter and select a clock source (TMPxSC)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 04:51:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161623#M9831</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2011-08-24T04:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture Interrupt</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161624#M9832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocco&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; No I did not plan on using the input capture timing function as such, I just wanted to us its interrupts.&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 05:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161624#M9832</guid>
      <dc:creator>Dougq5x</dc:creator>
      <dc:date>2011-08-24T05:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture Interrupt</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161625#M9833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rocco&lt;/P&gt;&lt;P&gt;I did as you suggested and "voila".&amp;nbsp; I'm surprised that a clock source is needed in order to enable the interrupts, but I guess there is much more going on in there than I thought.&amp;nbsp; Thanks for you help.&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 05:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161625#M9833</guid>
      <dc:creator>Dougq5x</dc:creator>
      <dc:date>2011-08-24T05:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture Interrupt</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161626#M9834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So there is your problem. The counter must be running for the timer-channels to be enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When Motorola first introduced the "Input Capture" function (30 years ago), they made it clear that it meant to capture "the time that an edge occured", and not just the edge itself. I don't think the documentation makes that clear anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't care about the time, you can save power by setting the counter to its slowest rate. But since your two input pins are spread across two different TPM modules, you will need to enable both counters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 05:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161626#M9834</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2011-08-24T05:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Input Capture Interrupt</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161627#M9835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rocco&lt;/P&gt;&lt;P&gt;I suspect I knew that back in the 68HC11 days, but&amp;nbsp; nowdays I only do a couple programs a year so I am perpetually green.&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 04:39:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Input-Capture-Interrupt/m-p/161627#M9835</guid>
      <dc:creator>Dougq5x</dc:creator>
      <dc:date>2011-08-26T04:39:43Z</dc:date>
    </item>
  </channel>
</rss>

