<?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: MPC56xx setup Sysclk in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC56xx-setup-Sysclk/m-p/985359#M14845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply use our clock configuration generator and copy the code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332694"&gt;https://community.nxp.com/docs/DOC-332694&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2020 07:57:18 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2020-02-19T07:57:18Z</dc:date>
    <item>
      <title>MPC56xx setup Sysclk</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC56xx-setup-Sysclk/m-p/985358#M14844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to modify and Init_pll example, from 40mhz crystal to 20mhz.&lt;/P&gt;&lt;P&gt;see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Set sysclk = 264MHz running from PLL with 40 MHz crystal reference. */ &lt;BR /&gt;void InitSysclk (void) { &lt;BR /&gt; FMPLL.ESYNCR2.R = 0x00000002; &lt;BR /&gt; FMPLL.ESYNCR1.R = 0x70040032; &lt;BR /&gt; while (FMPLL.SYNSR.B.LOCK != 1) {}; /* Wait for FMPLL to LOCK */ &lt;BR /&gt; FMPLL.ESYNCR2.R = 0x00000001; /* Fsys =264Mhz */ &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//-------&lt;/P&gt;&lt;P&gt;void initCAN_A (void) {&lt;BR /&gt; uint8_t i;&lt;/P&gt;&lt;P&gt;CAN_A.MCR.R = 0x5000003F; /* Put in Freeze Mode &amp;amp; enable all 64 message buffers */&lt;BR /&gt;CAN_A.CR.R = 0x04ED0002; /* Configure for 40MHz OSC, 500KHz bit time */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;TO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff9900;"&gt;my code with Xtal 20mhz, pins PLLCFG[2:0] = 001.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Set sysclk = 264/200/180/MHz running from PLL with 20 MHz crystal reference. */&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void InitSysclk (void) {&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;FMPLL.ESYNCR2.R = 0x00000002;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;FMPLL.ESYNCR1.R = 0x10040032;&lt;SPAN&gt;&amp;nbsp; &amp;lt;----pll = 001&lt;/SPAN&gt;&lt;BR /&gt;while (FMPLL.SYNSR.B.LOCK != 1) {}; /* Wait for FMPLL to LOCK */&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;FMPLL.ESYNCR2.R = 0x00000001; /* Fsys =264Mhz&amp;nbsp; or &lt;SPAN style="color: #008000;"&gt;&lt;STRONG&gt;180/200 Mhz*/&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//-------&lt;/P&gt;&lt;P&gt;void initCAN_A (void) {&lt;BR /&gt;CAN_A.MCR.R = 0x5000003F; /* Put in Freeze Mode &amp;amp; enable all 64 message buffers */&lt;BR /&gt;CAN_A.CR.R = 0x04ED0002; /* Configure for &lt;SPAN style="color: #008000;"&gt;20MHz&lt;/SPAN&gt; OSC, 500KHz bit time */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----brabra&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Carlos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC56xx-setup-Sysclk/m-p/985358#M14844</guid>
      <dc:creator>CCandido</dc:creator>
      <dc:date>2020-02-18T19:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: MPC56xx setup Sysclk</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC56xx-setup-Sysclk/m-p/985359#M14845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply use our clock configuration generator and copy the code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332694"&gt;https://community.nxp.com/docs/DOC-332694&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 07:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC56xx-setup-Sysclk/m-p/985359#M14845</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2020-02-19T07:57:18Z</dc:date>
    </item>
  </channel>
</rss>

