<?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>LPC MicrocontrollersのトピックRe: MRT period in repeated interrupt mode?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727192#M29412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is my understanding:&lt;/P&gt;&lt;P&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/18600i79A8B098CB30972B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18665i6B55BDB44A32F0A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please note, when the timer reaches zero, at the same time, it loads IVALUE-1, not 0-1=IVALUE-1.&lt;/P&gt;&lt;P&gt;Please see the above picture: 3,2,1,0&lt;/P&gt;&lt;P&gt;Take care, 0-&amp;gt;another 3, no 1 MRT clock, 0=3, it is at the same time, that's why I told you T=3 before.From the user manual description, you also can see it.Manual didn't say, when reach 0, go on count down to load IVALUE-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps to you, if you still have question about it, please kindly let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Thu, 22 Feb 2018 03:18:15 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-02-22T03:18:15Z</dc:date>
    <item>
      <title>MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727185#M29405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From user guide:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the timer n is in idle state, writing a non-zero value IVALUE to the INTVALn register&lt;BR /&gt;immediately loads the time interval value IVALUE - 1, and the timer begins to count down&lt;BR /&gt;from this value. When the timer reaches zero, an interrupt is generated, the value in the&lt;BR /&gt;INTVALn register IVALUE - 1 is reloaded automatically, and the timer starts to count down&lt;BR /&gt;again.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Too many words here, but how exactly to calculate period T of generated interupt sequence for given IVALUE ?&lt;/P&gt;&lt;P&gt;T= IVALUE?&lt;/P&gt;&lt;P&gt;T=IVALUE-1?&lt;/P&gt;&lt;P&gt;T=IVALUE+1?&lt;/P&gt;&lt;P&gt;It is not clear from all words spent above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 12:54:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727185#M29405</guid>
      <dc:creator>alexeyborisenko</dc:creator>
      <dc:date>2018-02-07T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727186#M29406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey Borisenko,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From the user manual description, the precise T should be IVALUE-1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 09 Feb 2018 08:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727186#M29406</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-09T08:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727187#M29407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You really deduced it from user manual description? How?.&lt;/P&gt;&lt;P&gt;First, try answer to two questions:&lt;/P&gt;&lt;P&gt;Q1: Is there one-clock lag between timer approach zero and loading IVALUE-1?.&lt;/P&gt;&lt;P&gt;Q2: Is there one-clock lag between loading IVALUE-1 and first count-down?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is usual to suspect that one-clock lag may be present or not In Q1,Q2 or both.&lt;/P&gt;&lt;P&gt;But nothing stated in user guide about those lags, therefore it is most logically staigtforward to assume they absent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on answers for Q1, Q2, timer will behaves differently:&lt;/P&gt;&lt;P&gt;suppose IVALUE=4:&lt;/P&gt;&lt;P&gt;C1: no,no:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...2,1,2,1,2,1...&amp;nbsp; T=IVALUE-2&amp;nbsp;&amp;nbsp; (most straightforfard logical deduction from user guide statements)&lt;/P&gt;&lt;P&gt;C2: yes.no:&amp;nbsp;&amp;nbsp;&amp;nbsp; ...2,1,0,2,1,0,2,1,0...&amp;nbsp; T=IVALUE-1&lt;/P&gt;&lt;P&gt;C3: no,yes:&amp;nbsp;&amp;nbsp;&amp;nbsp; ...3,2,1,3,2,1,3,2,1... &amp;nbsp; T=IVALUE-1&lt;/P&gt;&lt;P&gt;C4: yes,yes:&amp;nbsp; ...3,2,1,0,3,2,1,0,3,2,1,0... T=IVALUE&amp;nbsp; ( most convenient behavior for timer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, If you deduced you answer from same user guide I have, it probably incorrect and can't help me.&lt;/P&gt;&lt;P&gt;And if your answer is really correct, I also still need to know which case is true: C2 or C3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 15:01:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727187#M29407</guid>
      <dc:creator>alexeyborisenko</dc:creator>
      <dc:date>2018-02-09T15:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727188#M29408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please tell me what the chip you are using? Please tell me the part number.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I will use the test result to prove it, test is more useful than the deduction.In my memory, I have tested it before, but I will test it again, to double check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Sun, 11 Feb 2018 08:32:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727188#M29408</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-11T08:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727189#M29409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using LPC812. It may bevave differently on different chips?&lt;/P&gt;&lt;P&gt;Thank you for support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Feb 2018 08:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727189#M29409</guid>
      <dc:creator>alexeyborisenko</dc:creator>
      <dc:date>2018-02-11T08:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727190#M29410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your patient, I have tested it on my side, and double check it with our according department colleagues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The precise T still should calculate with IVALUE-1,suppose IVALUE=4, the counter should be:&lt;/P&gt;&lt;P&gt;3,2,1,0, but take care, counter down from 3, so the actually time is just 3. 3 intervals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In your practical usage, please -1, but official code is still use the IVALUE, I think it is not precise enough, but just Hz frequency can't detect errors between IVALUE-1 or IVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 13 Feb 2018 07:47:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727190#M29410</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-13T07:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727191#M29411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't understand what you want to say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I say&amp;nbsp; timer counts: &amp;nbsp; ...3,2,1,0,3,2,1,0,3,2,1,0,... , this means each comma corresponds to exactly one clock&amp;nbsp; transition, and digit is timer value observed if read operation occurs within that clock. It is logically clear that period of this sequence is exactly 4 clocks. What you are meaning when saying T=3 in this sequence?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, this means that counter works as&amp;nbsp; ... ,u,2,1,u,2,1,u,2,1, ...&amp;nbsp; where "u" have no exact stable value, but most probably reads as either 0 or 3 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:48:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727191#M29411</guid>
      <dc:creator>alexeyborisenko</dc:creator>
      <dc:date>2018-02-13T09:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: MRT period in repeated interrupt mode?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727192#M29412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is my understanding:&lt;/P&gt;&lt;P&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/18600i79A8B098CB30972B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18665i6B55BDB44A32F0A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please note, when the timer reaches zero, at the same time, it loads IVALUE-1, not 0-1=IVALUE-1.&lt;/P&gt;&lt;P&gt;Please see the above picture: 3,2,1,0&lt;/P&gt;&lt;P&gt;Take care, 0-&amp;gt;another 3, no 1 MRT clock, 0=3, it is at the same time, that's why I told you T=3 before.From the user manual description, you also can see it.Manual didn't say, when reach 0, go on count down to load IVALUE-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps to you, if you still have question about it, please kindly let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Thu, 22 Feb 2018 03:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MRT-period-in-repeated-interrupt-mode/m-p/727192#M29412</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-22T03:18:15Z</dc:date>
    </item>
  </channel>
</rss>

