<?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: S12ZVML Timer0 Interrupt priority</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798589#M15693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just fast hint:&lt;/P&gt;&lt;P&gt;Please do not use commands like TIM0TFLG1_C0F = 1; for flag clearing. This command is translated as read-modify-write command and therefore it will clear all pending interrupt flags instead of only one of&amp;nbsp;them.&lt;/P&gt;&lt;P&gt;Please use commands like TIM0TFLG1 = TIM0TFLG1_C0F_MAP; or TIM0TFLG1 = 0x01; for clearing one flag in your ISR.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details please check our application note AN2554 Clearing and Disabling Interrupt Flags&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fapp_note%2FAN2554.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/microcontrollers/doc/app_note/AN2554.pdf&lt;/A&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;Radek&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, 11 Sep 2018 15:13:27 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2018-09-11T15:13:27Z</dc:date>
    <item>
      <title>S12ZVML Timer0 Interrupt priority</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798588#M15692</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;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;/P&gt;&lt;P&gt;&amp;nbsp;TIM0TC3 += 500 , cause the problem. What can I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;IMG /&gt;&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, 06 Sep 2018 09:32:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798588#M15692</guid>
      <dc:creator>frankkong</dc:creator>
      <dc:date>2018-09-06T09:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVML Timer0 Interrupt priority</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798589#M15693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just fast hint:&lt;/P&gt;&lt;P&gt;Please do not use commands like TIM0TFLG1_C0F = 1; for flag clearing. This command is translated as read-modify-write command and therefore it will clear all pending interrupt flags instead of only one of&amp;nbsp;them.&lt;/P&gt;&lt;P&gt;Please use commands like TIM0TFLG1 = TIM0TFLG1_C0F_MAP; or TIM0TFLG1 = 0x01; for clearing one flag in your ISR.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details please check our application note AN2554 Clearing and Disabling Interrupt Flags&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fapp_note%2FAN2554.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/microcontrollers/doc/app_note/AN2554.pdf&lt;/A&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;Radek&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, 11 Sep 2018 15:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798589#M15693</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2018-09-11T15:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVML Timer0 Interrupt priority</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798590#M15694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Radek,&lt;/P&gt;&lt;P&gt;&amp;nbsp; It works.&lt;/P&gt;&lt;P&gt;Best wish!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 08:16:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798590#M15694</guid>
      <dc:creator>frankkong</dc:creator>
      <dc:date>2018-09-13T08:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVML Timer0 Interrupt priority</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798591#M15695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;Thank you for your note.&lt;/P&gt;&lt;P&gt;I am glad that it works now.&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 08:36:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVML-Timer0-Interrupt-priority/m-p/798591#M15695</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2018-09-13T08:36:25Z</dc:date>
    </item>
  </channel>
</rss>

