<?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: RSIs1() in Processor Expert in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892690#M16406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to apologize for the delay.&lt;/P&gt;&lt;P&gt;I assume you are using RTIshared component.&lt;/P&gt;&lt;P&gt;Can you share your settings of this component?&lt;/P&gt;&lt;P&gt;When I generate code with default settings I can see that there is a counter&lt;/P&gt;&lt;P&gt;RTIs1_Cnt++; in the interrupt routine. I assume you can use it instead of your own variable "i".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;BR /&gt;ISR(RTIs1_Interrupt)&lt;BR /&gt;{&lt;BR /&gt; TIM0TFLG1 = 0x02U; /* Reset interrupt request flag */&lt;BR /&gt; RTIs1_Cnt++; /* Increment SW counter RTIs1_Cnt */&lt;BR /&gt; if (RTIs1_Cnt == 0xFAU) { /* Is it now the period time? */&lt;BR /&gt; RTIs1_Cnt = 0x00U; /* Reset SW counter RTIs1_Cnt */&lt;BR /&gt; /* * */&lt;BR /&gt; /* Warning: This component is not used by any other component! */&lt;BR /&gt; /* * */&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG RTIs1_CODE&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2019 11:04:02 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2019-04-16T11:04:02Z</dc:date>
    <item>
      <title>RSIs1() in Processor Expert</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892689#M16405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using S12ZVCA &amp;amp; Processor Expert(CodeWarrior 11.0.1). And we are setting RSIs1 to trigger a ISR per 1ms.&lt;/P&gt;&lt;P&gt;How to increase variable "i" per 1ms in main()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;uint16_t&amp;nbsp;&amp;nbsp;&amp;nbsp;i;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;i++;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// when ISR(RTIs1_Interrupt) is trigger&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSIs1.c (Manage by Processor Expert)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/*&lt;BR /&gt;** ===================================================================&lt;BR /&gt;** Method : RTIs1_Interrupt (component RTIshared)&lt;BR /&gt;**&lt;BR /&gt;** Description :&lt;BR /&gt;** The method services the interrupt of the selected peripheral(s)&lt;BR /&gt;** and eventually invokes the components event(s).&lt;BR /&gt;** This method is internal. It is used by Processor Expert only.&lt;BR /&gt;** ===================================================================&lt;BR /&gt;*/&lt;BR /&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;BR /&gt;ISR(RTIs1_Interrupt)&lt;BR /&gt;{&lt;BR /&gt; TIM1TFLG1 = 0x01U; /* Reset interrupt request flag */&lt;BR /&gt; TIM1TC0 += 0xFA00U; /* Add value corresponding with period */&lt;/P&gt;&lt;P&gt;/* Warning: This component is not used by any other component! */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG RTIs1_CODE&lt;/P&gt;&lt;P&gt;/* END RTIs1. */&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have been add code "i++;" to ISR&lt;SPAN style="background-color: #f6f6f6;"&gt;(RTIs1_Interrupt). But "i++;" disappear when i regenerate the PROCESSOR EXPERT CODE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Do you have any recommend?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Aaron&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 09:58:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892689#M16405</guid>
      <dc:creator>aaronlee</dc:creator>
      <dc:date>2019-04-11T09:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: RSIs1() in Processor Expert</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892690#M16406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to apologize for the delay.&lt;/P&gt;&lt;P&gt;I assume you are using RTIshared component.&lt;/P&gt;&lt;P&gt;Can you share your settings of this component?&lt;/P&gt;&lt;P&gt;When I generate code with default settings I can see that there is a counter&lt;/P&gt;&lt;P&gt;RTIs1_Cnt++; in the interrupt routine. I assume you can use it instead of your own variable "i".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;BR /&gt;ISR(RTIs1_Interrupt)&lt;BR /&gt;{&lt;BR /&gt; TIM0TFLG1 = 0x02U; /* Reset interrupt request flag */&lt;BR /&gt; RTIs1_Cnt++; /* Increment SW counter RTIs1_Cnt */&lt;BR /&gt; if (RTIs1_Cnt == 0xFAU) { /* Is it now the period time? */&lt;BR /&gt; RTIs1_Cnt = 0x00U; /* Reset SW counter RTIs1_Cnt */&lt;BR /&gt; /* * */&lt;BR /&gt; /* Warning: This component is not used by any other component! */&lt;BR /&gt; /* * */&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;#pragma CODE_SEG RTIs1_CODE&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 11:04:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892690#M16406</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-04-16T11:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: RSIs1() in Processor Expert</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892691#M16407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;We are using RTIshared component. But I don't know why our&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;ISR(RTIs1_Interrupt) is different from yours.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #51626f; "&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/79961i01949CD04F73753F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #51626f; "&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6; color: #51626f; "&gt;Aaron&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2019 16:08:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892691#M16407</guid>
      <dc:creator>aaronlee</dc:creator>
      <dc:date>2019-04-19T16:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: RSIs1() in Processor Expert</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892692#M16408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached my project with the same settings as yours in CW 11.1. Could you please check it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 07:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/RSIs1-in-Processor-Expert/m-p/892692#M16408</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-04-23T07:54:13Z</dc:date>
    </item>
  </channel>
</rss>

