<?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: GPT Interrupt in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/GPT-Interrupt/m-p/247342#M11541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In stages...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 - What CPU are you using? It helps to provide details. What OS is it running? Compiling with CodeWarrior or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - If you read the GPIO pin, can you see the signal (that you are using to cause the Capture) changing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - Is the Timer performing the Capture? Is it setting the flag to say this has happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - Is the request showing up in the Interrupt Controller? Run your test with CPU interrupts disabled to see if the request is making it this far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 - Are you programming a Vector in the Interrupt Table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 14:52:27 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2013-05-20T14:52:27Z</dc:date>
    <item>
      <title>GPT Interrupt</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/GPT-Interrupt/m-p/247341#M11540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use General Purpose Timer Channel #3 for input capture only. I configured the registers according to the documentation but the interrupt is not happening.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following are the register values I have setup.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Set GPT Channel #3 as Primary&lt;/P&gt;&lt;P&gt;MCF_GPIO_PTAPAR |= MCF_GPIO_PTAPAR_ICOC3_ICOC3;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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;// Input capture enabled&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_GPT_GPTIOS &amp;amp;= ~(MCF_GPT_GPTIOS_IOS3);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&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;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;// Enable GPT module&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_GPT_GPTSCR1 = MCF_GPT_GPTSCR1_GPTEN;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&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;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;// Capture on Falling edge&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_GPT_GPTCTL2 = MCF_GPT_GPTCTL2_INPUT3_FALLING;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&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;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;// Enable GPT interrupt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_GPT_GPTIE = MCF_GPT_GPTIE_CI3;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&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;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;// Enables pull-up resistors on the GPT ports&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_GPT_GPTSCR2 = MCF_GPT_GPTSCR2_PUPT;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&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;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;&lt;P&gt;// Set GPT Channel#3 interrupt level and priority.&lt;/P&gt;&lt;P&gt;MCF_INTC0_IMRH &amp;amp;= ~MCF_INTC_IMRH_INT_MASK47;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_INTC0_ICR47 = MCF_INTC_ICR_IL(IL_GPT_CH3) | MCF_INTC_ICR_IP(IP_GPT_CH3);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 14:27:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/GPT-Interrupt/m-p/247341#M11540</guid>
      <dc:creator>salman83</dc:creator>
      <dc:date>2013-05-20T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: GPT Interrupt</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/GPT-Interrupt/m-p/247342#M11541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In stages...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 - What CPU are you using? It helps to provide details. What OS is it running? Compiling with CodeWarrior or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - If you read the GPIO pin, can you see the signal (that you are using to cause the Capture) changing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - Is the Timer performing the Capture? Is it setting the flag to say this has happened?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - Is the request showing up in the Interrupt Controller? Run your test with CPU interrupts disabled to see if the request is making it this far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 - Are you programming a Vector in the Interrupt Table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 14:52:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/GPT-Interrupt/m-p/247342#M11541</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-05-20T14:52:27Z</dc:date>
    </item>
  </channel>
</rss>

