<?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: External Clock on LPC55s06 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-Clock-on-LPC55s06/m-p/1488067#M49562</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/166757"&gt;@Badman&lt;/a&gt;&amp;nbsp;We have tried with your solution and its working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Main clock frequency is 96 Mhz and setting SYSTICKCLKDIV0 register with zero (divide by 1). With Systick handler giving interrupt at every 100ms (calculated based on freq=96 Mhz), the code is not interrupted at the handler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with setting SYSTICKCLKDIV0 register with 1 (divide by 2), we get 48 Mhz. With above 48 Mhz, and given Systick interrupt value at 100 ms (calculated based on freq = 48 Mhz), the handler is getting hit. So, we are assuming the main clock is 48 Mhz instead of 96 Mhz.&lt;/P&gt;&lt;P&gt;So, Can you help me in getting the reasoning why the code is not working with 96 Mhz?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our modification in clock registers:&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;SYSTICKCLKDIV0 = 0x00; // systick clk divide with one&lt;BR /&gt;SYSCON-&amp;gt;SYSTICKCLKSEL0 = 0x00; //selecting main clk for systick from syscon (96 MHZ)&lt;BR /&gt;SYSTICK-&amp;gt;SYST_CSR |= (1 &amp;lt;&amp;lt; 1); // enable interrupt to systick (100msec)&lt;BR /&gt;SYSTICK-&amp;gt;SYST_CSR &amp;amp;= ~ (1 &amp;lt;&amp;lt; 2); // enable external clk&lt;BR /&gt;SYSTICK-&amp;gt;SYST_CSR |= (1 &amp;lt;&amp;lt; 0); // systick counter enable&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 10:56:48 GMT</pubDate>
    <dc:creator>Devaharsha</dc:creator>
    <dc:date>2022-07-12T10:56:48Z</dc:date>
    <item>
      <title>External Clock on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-Clock-on-LPC55s06/m-p/1487449#M49543</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We want to generate clock using external oscillator (which is 16 MHz ) and the systick handler should get an interrupted with every 100 ms.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have modified the code in the custom driver. The output is coming with SYS_CSR = (0x1 &amp;lt;&amp;lt; 2) , which is a Processor Clock but code is going to "Hard Fault" when SYS_CSR = (0x0 &amp;lt;&amp;lt; 2) , which is external clock.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me in figuring out the value to be given in SYST_CSR (systick control and status register)?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 11:46:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-Clock-on-LPC55s06/m-p/1487449#M49543</guid>
      <dc:creator>Devaharsha</dc:creator>
      <dc:date>2022-07-11T11:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: External Clock on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-Clock-on-LPC55s06/m-p/1487576#M49546</link>
      <description>&lt;P&gt;Try to clear second bit this code&lt;/P&gt;&lt;LI-CODE lang="c"&gt;SYS_CSR &amp;amp;= ~(0x1 &amp;lt;&amp;lt; 2);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 11 Jul 2022 16:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-Clock-on-LPC55s06/m-p/1487576#M49546</guid>
      <dc:creator>Badman</dc:creator>
      <dc:date>2022-07-11T16:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: External Clock on LPC55s06</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/External-Clock-on-LPC55s06/m-p/1488067#M49562</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/166757"&gt;@Badman&lt;/a&gt;&amp;nbsp;We have tried with your solution and its working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Main clock frequency is 96 Mhz and setting SYSTICKCLKDIV0 register with zero (divide by 1). With Systick handler giving interrupt at every 100ms (calculated based on freq=96 Mhz), the code is not interrupted at the handler.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with setting SYSTICKCLKDIV0 register with 1 (divide by 2), we get 48 Mhz. With above 48 Mhz, and given Systick interrupt value at 100 ms (calculated based on freq = 48 Mhz), the handler is getting hit. So, we are assuming the main clock is 48 Mhz instead of 96 Mhz.&lt;/P&gt;&lt;P&gt;So, Can you help me in getting the reasoning why the code is not working with 96 Mhz?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our modification in clock registers:&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;SYSTICKCLKDIV0 = 0x00; // systick clk divide with one&lt;BR /&gt;SYSCON-&amp;gt;SYSTICKCLKSEL0 = 0x00; //selecting main clk for systick from syscon (96 MHZ)&lt;BR /&gt;SYSTICK-&amp;gt;SYST_CSR |= (1 &amp;lt;&amp;lt; 1); // enable interrupt to systick (100msec)&lt;BR /&gt;SYSTICK-&amp;gt;SYST_CSR &amp;amp;= ~ (1 &amp;lt;&amp;lt; 2); // enable external clk&lt;BR /&gt;SYSTICK-&amp;gt;SYST_CSR |= (1 &amp;lt;&amp;lt; 0); // systick counter enable&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 10:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/External-Clock-on-LPC55s06/m-p/1488067#M49562</guid>
      <dc:creator>Devaharsha</dc:creator>
      <dc:date>2022-07-12T10:56:48Z</dc:date>
    </item>
  </channel>
</rss>

