<?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: LPC802 frequency Generation in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1738221#M54367</link>
    <description>I need to toggle a PIN (P0_17) for every 400ns. How can I achieve it?&amp;nbsp; While I trying to configure&amp;nbsp;this using CTIMER, I can able to go upto 10 us minimum (in 15MHz core frequency and MR Value as 120). If i try to reduce the MR value, no proper changes happen as per the expected level of time period.&lt;BR /&gt;Also&amp;nbsp; In polling method,&amp;nbsp; i make a code only for toggle as following main(){while(1){&lt;BR /&gt;GPIO-&amp;gt;SET[0]|=(1&amp;lt;&amp;lt;17);&lt;BR /&gt;GPIO-&amp;gt;CLR[0]|=(1&amp;lt;&amp;lt;17);&lt;BR /&gt;}}&lt;BR /&gt;In this also, it achieve only upto 340 KHz(nearly 2.4 us).&lt;BR /&gt;&lt;BR /&gt;Kindly give the solution for this.</description>
    <pubDate>Thu, 12 Oct 2023 04:41:35 GMT</pubDate>
    <dc:creator>kavya_akas</dc:creator>
    <dc:date>2023-10-12T04:41:35Z</dc:date>
    <item>
      <title>LPC802 frequency Generation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1737547#M54356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was using the LPC802 Controller.Where I was generate the Frequency up to 345khz When toggle the gpio pin.Is it possible to generate up to 2.4MHz.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 13:37:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1737547#M54356</guid>
      <dc:creator>kavya_akas</dc:creator>
      <dc:date>2023-10-11T13:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 frequency Generation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1738008#M54360</link>
      <description>&lt;P&gt;Hello, my name is Pavel, and I will be supporting your case, could you elaborate further about how you your questions? Did you use the Ctimer example on the SDK?&lt;/P&gt;
&lt;P&gt;Let me research more information about the last question.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 23:54:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1738008#M54360</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2023-10-11T23:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 frequency Generation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1738221#M54367</link>
      <description>I need to toggle a PIN (P0_17) for every 400ns. How can I achieve it?&amp;nbsp; While I trying to configure&amp;nbsp;this using CTIMER, I can able to go upto 10 us minimum (in 15MHz core frequency and MR Value as 120). If i try to reduce the MR value, no proper changes happen as per the expected level of time period.&lt;BR /&gt;Also&amp;nbsp; In polling method,&amp;nbsp; i make a code only for toggle as following main(){while(1){&lt;BR /&gt;GPIO-&amp;gt;SET[0]|=(1&amp;lt;&amp;lt;17);&lt;BR /&gt;GPIO-&amp;gt;CLR[0]|=(1&amp;lt;&amp;lt;17);&lt;BR /&gt;}}&lt;BR /&gt;In this also, it achieve only upto 340 KHz(nearly 2.4 us).&lt;BR /&gt;&lt;BR /&gt;Kindly give the solution for this.</description>
      <pubDate>Thu, 12 Oct 2023 04:41:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1738221#M54367</guid>
      <dc:creator>kavya_akas</dc:creator>
      <dc:date>2023-10-12T04:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 frequency Generation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1738911#M54377</link>
      <description>&lt;P&gt;Hello, I do not recommend using the timer at 1ns, intend of I recommend using it at a minimum of 100ns if you are using an interrupt put a counter or other solution to count 4 cycles to get 400ns.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 20:16:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1738911#M54377</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2023-10-12T20:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 frequency Generation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1739149#M54384</link>
      <description>&lt;P&gt;I tried to configure timer for 100 ns (using MR value of 1 and 2), but it works only upto 10 us (MR value of 120)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 05:48:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1739149#M54384</guid>
      <dc:creator>kavya_akas</dc:creator>
      <dc:date>2023-10-13T05:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 frequency Generation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1744799#M54525</link>
      <description>&lt;P&gt;Hello, sorry for the late response, I was researching more information on the reference manual and datasheet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The maximum clock source is 15mhz.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pavel_Hernandez_0-1698098854843.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/246454i3B5800C321D7812D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pavel_Hernandez_0-1698098854843.png" alt="Pavel_Hernandez_0-1698098854843.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The documentation of the Ctimer source is from the&amp;nbsp;AHBCLKCTRL0.&lt;/P&gt;
&lt;P&gt;The LPC802 supports a clock up to 15MHz which gives us a clock cycle period of 66ns, and the documentation regarding interrupt latency of Arm (You can look at it on this link Interrupt Latency) states that the Cortex-M0+'s clock cycles with zero wait state memory are 15.&lt;BR /&gt;&lt;BR /&gt;Interrupt Time = CyclesClock * period = 15 * 66ns = 1us&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/beginner-guide-on-interrupt-latency-and-interrupt-latency-of-the-arm-cortex-m-processors" target="_blank"&gt;Beginner guide on interrupt latency and Arm Cortex-M processors - Architectures and Processors blog - Arm Community blogs - Arm Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;After reviewing the documentation value below 1us is not possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 22:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-frequency-Generation/m-p/1744799#M54525</guid>
      <dc:creator>Pavel_Hernandez</dc:creator>
      <dc:date>2023-10-23T22:18:08Z</dc:date>
    </item>
  </channel>
</rss>

