<?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>S12 / MagniV MicrocontrollersのトピックRe: can someone supply a complete working example of an API or RTI   ISR() ?</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181740#M6662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I allowed PE to generate the ISR code in events.c&lt;/P&gt;&lt;P&gt;The TimerInt component name is LoopTimer.&lt;/P&gt;&lt;P&gt;The name of the ISR is LoopTimer_OnInterrupt()&lt;/P&gt;&lt;P&gt;I have also selected RTIfree as the periodic interrupt source. &lt;/P&gt;&lt;P&gt;I compile and load to the product, When I debug this and single step through the ASM code, the product resets as soon as the _IE() statement is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean that there is some other ISR missing? Vtri is defined in Vectors.c. What else is missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly, this problem only exists when I have fully defined all pins on the micro using PE. I can get this to work if it is the only PE component. So, there must be some interaction with another component in my product configuration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any guidance here?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 10:08:57 GMT</pubDate>
    <dc:creator>checkers</dc:creator>
    <dc:date>2012-11-21T10:08:57Z</dc:date>
    <item>
      <title>can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181734#M6656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use Processor Expert to enable the API interrupt, but it does not work. It seems that the ISR is never called.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, is there a complete working example somewhere that I can try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 18:19:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181734#M6656</guid>
      <dc:creator>checkers</dc:creator>
      <dc:date>2012-11-20T18:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181735#M6657</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;please find the attached screen-shot that should help you to get set-up API interrupt work on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;Please post future ProcessorExpert related question on Processor Expert Software forum:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="1" data-containertype="14" data-objectid="2022" data-objecttype="14" href="https://community.nxp.com/community/pex"&gt;Processor Expert Software&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181735#M6657</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2012-11-21T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181736#M6658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the example, but I need more. I have tried to write an ISR for the RTI but can't seem to get it right. Do you have the actual ISR that goes with this example? (my_rti_isr)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 09:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181736#M6658</guid>
      <dc:creator>checkers</dc:creator>
      <dc:date>2012-11-21T09:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181737#M6659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would also like to know where it should be stored. Does it go in the same file with main()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 09:32:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181737#M6659</guid>
      <dc:creator>checkers</dc:creator>
      <dc:date>2012-11-21T09:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181738#M6660</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;I think the best way is to let PEx to generate it. Go to ProcessorExpert option and set Generate ISR option to Yes. After that the ISR will be generated into Events.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However you can also put the ISR into main.c (without this option enabled):&lt;/P&gt;&lt;P&gt;ISR(my_rti_isr){&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 09:43:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181738#M6660</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2012-11-21T09:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181739#M6661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you can find two example codes for API timer.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-93814"&gt;https://community.freescale.com/docs/DOC-93814&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note: Example codes are for S12G, but it could be simple modify for S12P.&lt;/P&gt;&lt;P&gt;Example codes didn’t use PE (just C code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G240-API-CW51.ZIP contains example code for trimming API timer to 10kHz (API isn't factory trimmed).&lt;/P&gt;&lt;P&gt;G240-API+STOP-CW51.ZIP contains example code for enter to stop mode and periodical wakeup by API interrupt,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 09:51:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181739#M6661</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2012-11-21T09:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181740#M6662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I allowed PE to generate the ISR code in events.c&lt;/P&gt;&lt;P&gt;The TimerInt component name is LoopTimer.&lt;/P&gt;&lt;P&gt;The name of the ISR is LoopTimer_OnInterrupt()&lt;/P&gt;&lt;P&gt;I have also selected RTIfree as the periodic interrupt source. &lt;/P&gt;&lt;P&gt;I compile and load to the product, When I debug this and single step through the ASM code, the product resets as soon as the _IE() statement is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean that there is some other ISR missing? Vtri is defined in Vectors.c. What else is missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oddly, this problem only exists when I have fully defined all pins on the micro using PE. I can get this to work if it is the only PE component. So, there must be some interaction with another component in my product configuration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide any guidance here?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 10:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181740#M6662</guid>
      <dc:creator>checkers</dc:creator>
      <dc:date>2012-11-21T10:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: can someone supply a complete working example of an API or RTI   ISR() ?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181741#M6663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I decided to start over. This time I started with TimerInt and added all of the other components. After I added each, I tested to see if it was broken. I went through the entire configuration and now there is no problem at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what really went wrong? Is it that important to define the TimerInt component first or is this a bug in the Processor Expert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 12:39:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/can-someone-supply-a-complete-working-example-of-an-API-or-RTI/m-p/181741#M6663</guid>
      <dc:creator>checkers</dc:creator>
      <dc:date>2012-11-21T12:39:55Z</dc:date>
    </item>
  </channel>
</rss>

