<?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: LPCOpen MRT sample errors in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-MRT-sample-errors/m-p/514552#M760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Wed Jan 07 21:11:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;I'm not sure why these timers are 24bit in a 32bit world, but obviously that's still surprising&amp;nbsp; :~&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No bits leftover after including 48bit RIT&amp;nbsp; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:13:15 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:13:15Z</dc:date>
    <item>
      <title>LPCOpen MRT sample errors</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-MRT-sample-errors/m-p/514551#M759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Jan 07 00:08:56 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso LPC1549 board LPCOpen V2.08c - periph_mrt sample is including several inversion errors...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wrong:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;setupMRT(2, MRT_MODE_ONESHOT, 2);/* Will fire in 0.5 seconds */
...
setupMRT(0, MRT_MODE_REPEAT, 2);/* 2Hz rate */
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;Corrected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;setupMRT(2, MRT_MODE_ONESHOT, 2);/* Will [color=#f00]not[/color] fire in 0.5 seconds */
...
setupMRT(0, MRT_MODE_REPEAT, 2);/* [color=#f00]no[/color] 2Hz rate */
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Surprisingly enough, setting interval time to (MainClockRate / 2) isn't working&amp;nbsp; :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead expected 72E6 / 2 = 36E6 interval timer is set to 2445568 (= 36E6 AND 0xFFFFFF) , causing a 29 Hz rate&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why these timers are 24bit in a 32bit world, but obviously that's still surprising&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-MRT-sample-errors/m-p/514551#M759</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen MRT sample errors</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-MRT-sample-errors/m-p/514552#M760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Wed Jan 07 21:11:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;I'm not sure why these timers are 24bit in a 32bit world, but obviously that's still surprising&amp;nbsp; :~&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No bits leftover after including 48bit RIT&amp;nbsp; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-MRT-sample-errors/m-p/514552#M760</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:13:15Z</dc:date>
    </item>
  </channel>
</rss>

