<?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: S12XE Port P Interrupt on Both Edges in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498963#M12264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;I shortly looked at your code, and…:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;I do not see a command for enable timer in your ECT_Init() function. For example: TSCR1 = 0xE0;&lt;/LI&gt;&lt;LI&gt;You set port T pins as digital output inside Init_Pins(). When we enable timer, it will overtake control on these pins, however it still could be dangerous because you have these pins connected together with port P output pins. So, there is potential risk of short between these pins.&lt;/LI&gt;&lt;LI&gt;Note: PE_low_level_init() already enable interrupts.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2016 11:08:06 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2016-04-13T11:08:06Z</dc:date>
    <item>
      <title>S12XE Port P Interrupt on Both Edges</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498960#M12261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a square wave signals on these pins, PP0, PP1, PP2, PP3, PP4 and PP5. I want an interrupt on both edges. I do not want to count or time the edges. I want to mirror the signals onto pins PT0, PT1, PT2, PT3, PT4 and PT5.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to use ECT in Xgate, but the Interrupts do not work for me.&amp;nbsp; I see there is a Port P Interrupt vector in XGate. Will this interrupt on all edges on all port P Pins.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498960#M12261</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2016-04-12T09:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE Port P Interrupt on Both Edges</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498961#M12262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;pin interrupt works always only for one type of edge, despite on fact whether this interrupt is handled by CPU or XGATE.&lt;/P&gt;&lt;P&gt;So, you could modify edge settings at every edge or externally route these signals to port T pins and use input capture feature for ECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share here your configuration of ECT and XGATE interrupt routines for a short check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The typical issue in the case of multiple timer channels is flag clearing mechanism.&lt;/P&gt;&lt;P&gt;Please use “ECT_TFLG1 = 0x01;”&amp;nbsp; or “ECT_TFLG1 = ECT_TFLG1_C0F_MASK;” instead “ECT_TFLG1_C0F=1;” command. The command “ECT_TFLG1_C0F=1;” is read/modify/write command which will clear all pending flags in this register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 12:21:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498961#M12262</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-04-12T12:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE Port P Interrupt on Both Edges</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498962#M12263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Radek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still no luck. I have included the project files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 08:36:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498962#M12263</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2016-04-13T08:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE Port P Interrupt on Both Edges</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498963#M12264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;I shortly looked at your code, and…:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;I do not see a command for enable timer in your ECT_Init() function. For example: TSCR1 = 0xE0;&lt;/LI&gt;&lt;LI&gt;You set port T pins as digital output inside Init_Pins(). When we enable timer, it will overtake control on these pins, however it still could be dangerous because you have these pins connected together with port P output pins. So, there is potential risk of short between these pins.&lt;/LI&gt;&lt;LI&gt;Note: PE_low_level_init() already enable interrupts.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:08:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498963#M12264</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-04-13T11:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE Port P Interrupt on Both Edges</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498964#M12265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Radek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found the reason the ECT interrupts are not working. I should be using the TIM input capture. This interrupts on Port P pins and not the ECT input capture which uses Port T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will change the code so I am using the correct timer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 08:48:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498964#M12265</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2016-04-14T08:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: S12XE Port P Interrupt on Both Edges</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498965#M12266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;Thank you for let us know the root cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 09:22:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XE-Port-P-Interrupt-on-Both-Edges/m-p/498965#M12266</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-04-14T09:22:39Z</dc:date>
    </item>
  </channel>
</rss>

