<?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 Generating an 8 usec timer interrupt on the LPC804 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Generating-an-8-usec-timer-interrupt-on-the-LPC804/m-p/1743099#M54491</link>
    <description>&lt;P&gt;I have some stepper motor control code that I'm porting over from a PIC that uses an 8 usec (micro-seconds) timer (TMR4). To keep the control the same, I need to generate an 8 usec timer interrupt on the LPC804.&amp;nbsp;&amp;nbsp;My target is an LPC804_TSSOP20 which is Part Number LPC804M101JDH20 but I have an LPCXpresso804 Rev B OM40001 board to do testing with.&lt;/P&gt;&lt;P&gt;I was looking at using a CTimer or an MRT timer to generate this 8 usec interrupt and I found an MRT example here on the forum from&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test, I'm using the &lt;EM&gt;&lt;STRONG&gt;identical&lt;/STRONG&gt; &lt;/EM&gt;code from this posting on my LPCXpresso804 Rev B OM40001 board:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-maximum-MRT-frequency/m-p/992300/highlight/true#M39061" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-maximum-MRT-frequency/m-p/992300/highlight/true#M39061&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But instead of seeing a frequency of 125.7 kHZ and a period of 7.956 us, I'm seeing a frequency of 44.7 kHz and a period of 22.35 us. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scope of the MRT timer firing the LED" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246156i3E9A710ED284EED1/image-size/large?v=v2&amp;amp;px=999" role="button" title="scope_0_MRT_demo.png" alt="Scope of the MRT timer firing the LED" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Scope of the MRT timer firing the LED&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What would be the best way for me to generate the 8 usec timer interrupt that I need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 13:35:08 GMT</pubDate>
    <dc:creator>jrevans</dc:creator>
    <dc:date>2023-10-20T13:35:08Z</dc:date>
    <item>
      <title>Generating an 8 usec timer interrupt on the LPC804</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Generating-an-8-usec-timer-interrupt-on-the-LPC804/m-p/1743099#M54491</link>
      <description>&lt;P&gt;I have some stepper motor control code that I'm porting over from a PIC that uses an 8 usec (micro-seconds) timer (TMR4). To keep the control the same, I need to generate an 8 usec timer interrupt on the LPC804.&amp;nbsp;&amp;nbsp;My target is an LPC804_TSSOP20 which is Part Number LPC804M101JDH20 but I have an LPCXpresso804 Rev B OM40001 board to do testing with.&lt;/P&gt;&lt;P&gt;I was looking at using a CTimer or an MRT timer to generate this 8 usec interrupt and I found an MRT example here on the forum from&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840"&gt;@jeremyzhou&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test, I'm using the &lt;EM&gt;&lt;STRONG&gt;identical&lt;/STRONG&gt; &lt;/EM&gt;code from this posting on my LPCXpresso804 Rev B OM40001 board:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-maximum-MRT-frequency/m-p/992300/highlight/true#M39061" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC804-maximum-MRT-frequency/m-p/992300/highlight/true#M39061&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But instead of seeing a frequency of 125.7 kHZ and a period of 7.956 us, I'm seeing a frequency of 44.7 kHz and a period of 22.35 us. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scope of the MRT timer firing the LED" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246156i3E9A710ED284EED1/image-size/large?v=v2&amp;amp;px=999" role="button" title="scope_0_MRT_demo.png" alt="Scope of the MRT timer firing the LED" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Scope of the MRT timer firing the LED&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What would be the best way for me to generate the 8 usec timer interrupt that I need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 13:35:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Generating-an-8-usec-timer-interrupt-on-the-LPC804/m-p/1743099#M54491</guid>
      <dc:creator>jrevans</dc:creator>
      <dc:date>2023-10-20T13:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Generating an 8 usec timer interrupt on the LPC804</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Generating-an-8-usec-timer-interrupt-on-the-LPC804/m-p/1744936#M54526</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216292"&gt;@jrevans&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe the bus clock not the same with code you mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;You can use Config tool inside MCUXpresso IDE to config timer, after config, it will generated code automatically.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1698116430285.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246491i02CB64C9A52ACF2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1698116430285.png" alt="Alice_Yang_0-1698116430285.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 03:00:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Generating-an-8-usec-timer-interrupt-on-the-LPC804/m-p/1744936#M54526</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-10-24T03:00:56Z</dc:date>
    </item>
  </channel>
</rss>

