<?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のトピックRTI stops working on MC9S12XEP100</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203808#M8273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have the RTI running successfully in my boot&amp;nbsp;main configured for 1.024 ms. I use the following&amp;nbsp; to set it&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; RTICTL = 0x1F; /* set RTI prescaler */&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; CRGINT = 0x80;&amp;nbsp; /* enable RTI interrupts */&lt;BR /&gt;&amp;nbsp; CRGFLG = 0x80;&amp;nbsp; /* clear any pending RTIF */&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Then, I use a unconditional jump to the application main where again RTI gets re configured to approx. 10 ms&lt;/DIV&gt;&lt;DIV&gt;RTICTL = 0x59;&lt;/DIV&gt;&lt;DIV&gt;CRGFLG_RTIF = 1;&lt;/DIV&gt;&lt;DIV&gt;CRGINT_RTIE = 1;&lt;/DIV&gt;&lt;DIV&gt;Also, before the above,&amp;nbsp;the chip gets configured to NORMAL EXPANDED mode.&lt;/DIV&gt;&lt;DIV&gt;Even here the RTI works fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Again, when I jump from&amp;nbsp;application to my boot&amp;nbsp;main back, (the first code set again gets executed), the RTI stops working.Other interrupts work fine.I have set my IVBR register properly&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However if I do a hard reset to return to boot main&amp;nbsp;&amp;nbsp;instead of jumping, the RTI works perfectly&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In both the boot and appl, I am setting up the PLL clock to 40Mhz&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am at a loss to findout&amp;nbsp;what am I missing out here, any initializations to be taken care of.&lt;/DIV&gt;&lt;DIV&gt;please advice.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;with regards,&lt;/DIV&gt;&lt;DIV&gt;Lak&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2008 19:46:55 GMT</pubDate>
    <dc:creator>lak</dc:creator>
    <dc:date>2008-11-20T19:46:55Z</dc:date>
    <item>
      <title>RTI stops working on MC9S12XEP100</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203808#M8273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have the RTI running successfully in my boot&amp;nbsp;main configured for 1.024 ms. I use the following&amp;nbsp; to set it&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; RTICTL = 0x1F; /* set RTI prescaler */&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; CRGINT = 0x80;&amp;nbsp; /* enable RTI interrupts */&lt;BR /&gt;&amp;nbsp; CRGFLG = 0x80;&amp;nbsp; /* clear any pending RTIF */&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Then, I use a unconditional jump to the application main where again RTI gets re configured to approx. 10 ms&lt;/DIV&gt;&lt;DIV&gt;RTICTL = 0x59;&lt;/DIV&gt;&lt;DIV&gt;CRGFLG_RTIF = 1;&lt;/DIV&gt;&lt;DIV&gt;CRGINT_RTIE = 1;&lt;/DIV&gt;&lt;DIV&gt;Also, before the above,&amp;nbsp;the chip gets configured to NORMAL EXPANDED mode.&lt;/DIV&gt;&lt;DIV&gt;Even here the RTI works fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Again, when I jump from&amp;nbsp;application to my boot&amp;nbsp;main back, (the first code set again gets executed), the RTI stops working.Other interrupts work fine.I have set my IVBR register properly&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However if I do a hard reset to return to boot main&amp;nbsp;&amp;nbsp;instead of jumping, the RTI works perfectly&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In both the boot and appl, I am setting up the PLL clock to 40Mhz&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am at a loss to findout&amp;nbsp;what am I missing out here, any initializations to be taken care of.&lt;/DIV&gt;&lt;DIV&gt;please advice.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;with regards,&lt;/DIV&gt;&lt;DIV&gt;Lak&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203808#M8273</guid>
      <dc:creator>lak</dc:creator>
      <dc:date>2008-11-20T19:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: RTI stops working on MC9S12XEP100</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203809#M8274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Are you jumping back to boot from some of your interrupt service routine?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 20:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203809#M8274</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-11-20T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: RTI stops working on MC9S12XEP100</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203810#M8275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes, this jump is&amp;nbsp;from a task which gets&amp;nbsp;executed in the&amp;nbsp;RTI ISR. However before jumping, I disable the RTI and disable the interrupts too.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;with regards,&lt;/DIV&gt;&lt;DIV&gt;Lak&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 20:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203810#M8275</guid>
      <dc:creator>lak</dc:creator>
      <dc:date>2008-11-20T20:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: RTI stops working on MC9S12XEP100</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203811#M8276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;If it was S12, then jumping from ISR to start of bootloader, reinitializing SP and some peripherals could be enough. In S12X you also have to reset CPU CCR IPL bits to 0, and I guess you didn't? If so, then current priority level is &amp;gt;=1, and all interrupts that have priority &amp;lt;= IPL are inhibited.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BTW in ISR interrupts are already disabled, unless you reenable them with CLI allowing higher priority interrupts to interrupt current ISR.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 20:58:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203811#M8276</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-11-20T20:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: RTI stops working on MC9S12XEP100</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203812#M8277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Kef,&lt;/DIV&gt;&lt;DIV&gt;your suggestion was very appropriate.&lt;/DIV&gt;&lt;DIV&gt;I had been&amp;nbsp;indeed clearing the CCR&amp;nbsp; by the instn ANDCC #0 however, the IPL bits are in the MSbyte of the CCR(CCRH), which I realised after your mail.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As i had been jumping from the RTI isr which had a priority level of 1&amp;nbsp; in appl main where we had nested interrupts, the CCR retains this level.&lt;/DIV&gt;&lt;DIV&gt;So once i jumped to boot, still the RTI carried a priority level of 1 and was not serviced since the current level in CCR&amp;nbsp;and current RTI levels were same.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;After clearing the CCRH thro TFR A,CCRH where i had cleared A earlier, RTI started working again.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thank you again for your advice.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 20:29:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RTI-stops-working-on-MC9S12XEP100/m-p/203812#M8277</guid>
      <dc:creator>lak</dc:creator>
      <dc:date>2008-11-21T20:29:28Z</dc:date>
    </item>
  </channel>
</rss>

