<?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: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475110#M49193</link>
    <description>&lt;P&gt;but on CRO its showing 2ms. with value of 179999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there issue in my core clock ?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 07:38:48 GMT</pubDate>
    <dc:creator>k_sunilgupta</dc:creator>
    <dc:date>2022-06-16T07:38:48Z</dc:date>
    <item>
      <title>Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1473396#M49150</link>
      <description>&lt;P&gt;Dear ALL,&lt;/P&gt;&lt;P&gt;I am doing register level programming using LPC54606J512BD100 with peripheral MRT which is working fine, But i want to generate counter delay for 1ms, 100ms, 1 sec.&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any calculation for this?&lt;/P&gt;&lt;P&gt;please tell me.&lt;/P&gt;&lt;P&gt;my core clock is 180 MHz.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/79688"&gt;@dalizhang&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/3433"&gt;@Sunil&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/158496"&gt;@xling&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/68292"&gt;@mgnxp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 06:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1473396#M49150</guid>
      <dc:creator>k_sunilgupta</dc:creator>
      <dc:date>2022-06-14T06:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1473447#M49151</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; is there any calculation for this?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is a very bad idea for many reasons.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Use a timer. The best option is SystTick, which is portable amongst all Cortex M devices, and has an easy configuration interface. And there are already CMSIS functions to set it up.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 08:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1473447#M49151</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-06-14T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1473467#M49152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The MRT module driving clock is from the AHB clock(Bus clock), for example, if the core clock of LPC54606J512BD100 is 180mhz, the AHB bus clock is also 180MHz, clock cycle time is 1/180MHz=5.55555nS&lt;/P&gt;
&lt;P&gt;for 1mS delay, the required&amp;nbsp; counter value is 1mS/5.555555nS=180 000&lt;/P&gt;
&lt;P&gt;for 100mS delay, the required counter value is 100ms/5.55555nS=18 000 000, the counter can not reach up to the value because of limited counter bits.&lt;/P&gt;
&lt;P&gt;Because the counter is 24 bits, so that counter maximum value is 2**24=16 777 216, so the maximum delay time is 16 777 216/[(180*(10**6)]=93.206mS.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 08:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1473467#M49152</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-06-14T08:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475056#M49187</link>
      <description>&lt;P&gt;thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:30:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475056#M49187</guid>
      <dc:creator>k_sunilgupta</dc:creator>
      <dc:date>2022-06-16T06:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475069#M49189</link>
      <description>&lt;P&gt;MRT 179999 FOR 2ms delay this the value please tell me is it right as per core clock 180 MHz.&lt;/P&gt;&lt;P&gt;because on CRO its showing 2ms delay.&lt;/P&gt;&lt;P&gt;just want to confirm is it right as per my value in MRT counter value.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475069#M49189</guid>
      <dc:creator>k_sunilgupta</dc:creator>
      <dc:date>2022-06-16T06:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475090#M49191</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The delay time is 179999*(1/180M)=1mS&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:58:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475090#M49191</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-06-16T06:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475110#M49193</link>
      <description>&lt;P&gt;but on CRO its showing 2ms. with value of 179999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there issue in my core clock ?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 07:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475110#M49193</guid>
      <dc:creator>k_sunilgupta</dc:creator>
      <dc:date>2022-06-16T07:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475173#M49197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What is CRO?&lt;/P&gt;
&lt;P&gt;I suppose you use the code like&lt;/P&gt;
&lt;P&gt;void main()&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;.............&lt;/P&gt;
&lt;P&gt;for(;;)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;delay(179999); //implemented by MRT&lt;/P&gt;
&lt;P&gt;toggle_LED();&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;You test the LED signal cycle time with oscilloscope, it is 2mS.&lt;/P&gt;
&lt;P&gt;Pls note that the signal toggling twice to comprise a cycle, so the cycle is 2mS if MRT delay 1mS..&lt;/P&gt;
&lt;P&gt;Pls check&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 08:56:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475173#M49197</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-06-16T08:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any calculation for MRT as counter for 1ms, 100ms, 1sec ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475196#M49200</link>
      <description>&lt;P&gt;thankyou so much for the clearification.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 09:31:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-there-any-calculation-for-MRT-as-counter-for-1ms-100ms-1sec/m-p/1475196#M49200</guid>
      <dc:creator>k_sunilgupta</dc:creator>
      <dc:date>2022-06-16T09:31:44Z</dc:date>
    </item>
  </channel>
</rss>

