<?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: S12ZVML31 Timer0 Interrupt priority</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML31-Timer0-Interrupt-priority/m-p/831035#M15960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there are too few details to answer or investigate the issue. Setup looks to be good. But what is not visible is flags clearing, timer setup, service routine definition and body,...&lt;/P&gt;&lt;P&gt;Are you able to create simplified example project which contains only timer setup and simplified routines and highlights the issue. The best approach is to start with simplified project to exclude all possible dependences caused by other routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearing flag from TOV:&lt;/P&gt;&lt;P&gt;TFLG2 = 0x80;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearing flag from IC/OC event:&lt;/P&gt;&lt;P&gt;TFLG1 = 0x01;&amp;nbsp; // clear flag only fro OC0 event &amp;nbsp;&amp;nbsp;&amp;nbsp; // incorrect approaches TFLG1 |= 0x01; TFLG1_COF0 = 1;&lt;/P&gt;&lt;P&gt;TFLG1 = 0x08;&amp;nbsp; // clear flag only fro OC3 event&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // incorrect approaches TFLG1 |= 0x08; TFLG1_COF3 = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2018 09:12:01 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2018-08-29T09:12:01Z</dc:date>
    <item>
      <title>S12ZVML31 Timer0 Interrupt priority</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML31-Timer0-Interrupt-priority/m-p/831034#M15959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Now ,I have a problem.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I use the interrupt of Timer0 IOC0 (vector address 0x1CC)and IOC3(vector address 0x1C0). IOC3 is for input capture and IOC0 for output compare. The timer base frequency is 200K.&amp;nbsp; The problem is when I set the different priority it will meet some problem. If I set the same priority it works well. You can see the problem below:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;IMG /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="优先级配置.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67960i49058DA70EEEBBBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="优先级配置.png" alt="优先级配置.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Timer0中断优先级不一致出错.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67912iA142EAED7D623FB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Timer0中断优先级不一致出错.png" alt="Timer0中断优先级不一致出错.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;IMG /&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 01:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML31-Timer0-Interrupt-priority/m-p/831034#M15959</guid>
      <dc:creator>frankkong</dc:creator>
      <dc:date>2018-08-28T01:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVML31 Timer0 Interrupt priority</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML31-Timer0-Interrupt-priority/m-p/831035#M15960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there are too few details to answer or investigate the issue. Setup looks to be good. But what is not visible is flags clearing, timer setup, service routine definition and body,...&lt;/P&gt;&lt;P&gt;Are you able to create simplified example project which contains only timer setup and simplified routines and highlights the issue. The best approach is to start with simplified project to exclude all possible dependences caused by other routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearing flag from TOV:&lt;/P&gt;&lt;P&gt;TFLG2 = 0x80;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearing flag from IC/OC event:&lt;/P&gt;&lt;P&gt;TFLG1 = 0x01;&amp;nbsp; // clear flag only fro OC0 event &amp;nbsp;&amp;nbsp;&amp;nbsp; // incorrect approaches TFLG1 |= 0x01; TFLG1_COF0 = 1;&lt;/P&gt;&lt;P&gt;TFLG1 = 0x08;&amp;nbsp; // clear flag only fro OC3 event&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // incorrect approaches TFLG1 |= 0x08; TFLG1_COF3 = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 09:12:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML31-Timer0-Interrupt-priority/m-p/831035#M15960</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2018-08-29T09:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVML31 Timer0 Interrupt priority</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML31-Timer0-Interrupt-priority/m-p/831036#M15961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，lama&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TIM0TC3 += 500 , cause the problem. What can I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="timer init.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67722i7858668483D555A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="timer init.png" alt="timer init.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IOC0 interrupt.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67760iF0C0CF7F988378D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="IOC0 interrupt.png" alt="IOC0 interrupt.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IOC3 interrupt.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67806i94B76353869B0C21/image-size/large?v=v2&amp;amp;px=999" role="button" title="IOC3 interrupt.png" alt="IOC3 interrupt.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="中断优先级.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/67836i89FEDA8F0CBE6F2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="中断优先级.png" alt="中断优先级.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TIME0TC3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68317i15973F505E576CCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="TIME0TC3.png" alt="TIME0TC3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 05:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML31-Timer0-Interrupt-priority/m-p/831036#M15961</guid>
      <dc:creator>frankkong</dc:creator>
      <dc:date>2018-08-30T05:04:14Z</dc:date>
    </item>
  </channel>
</rss>

