<?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: SPI Master clock set to about 8 MHZ in KL25Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Master-clock-set-to-about-8-MHZ-in-KL25Z/m-p/683214#M42068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arth Shah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use the SPI1, the clock source is the system clock, the system clock can up to 48Mhz, let's take system clock = 48Mhz as an example.&lt;/P&gt;&lt;P&gt;Now, follow this picture to calculate the SPPR and SPR.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20511i2DAACB0242A2FC93/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;8Mhz= 48M/(SPPR+1)*2^(SPR+1)&lt;/P&gt;&lt;P&gt;So, SPPR=2, SPR=0 can get 8Mhz baudrate.&lt;/P&gt;&lt;P&gt;You can configure SPI1_BR=0X20.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If your bus is 24Mhz, you can't use the SPI0 get 8Mhz, SPI0 clock source is bus clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20556i5DBAAB59A7937DEE/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 10:34:24 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-05-18T10:34:24Z</dc:date>
    <item>
      <title>SPI Master clock set to about 8 MHZ in KL25Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Master-clock-set-to-about-8-MHZ-in-KL25Z/m-p/683213#M42067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i am working on KL25Z.&lt;/P&gt;&lt;P&gt;i need to set SPI Clock rate about 8 MHz how can i set this ?&lt;/P&gt;&lt;P&gt;In SPI BR register i can not set to 8 MHz..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 09:41:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Master-clock-set-to-about-8-MHZ-in-KL25Z/m-p/683213#M42067</guid>
      <dc:creator>arthshah</dc:creator>
      <dc:date>2017-05-17T09:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master clock set to about 8 MHZ in KL25Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Master-clock-set-to-about-8-MHZ-in-KL25Z/m-p/683214#M42068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arth Shah,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use the SPI1, the clock source is the system clock, the system clock can up to 48Mhz, let's take system clock = 48Mhz as an example.&lt;/P&gt;&lt;P&gt;Now, follow this picture to calculate the SPPR and SPR.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20511i2DAACB0242A2FC93/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;8Mhz= 48M/(SPPR+1)*2^(SPR+1)&lt;/P&gt;&lt;P&gt;So, SPPR=2, SPR=0 can get 8Mhz baudrate.&lt;/P&gt;&lt;P&gt;You can configure SPI1_BR=0X20.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If your bus is 24Mhz, you can't use the SPI0 get 8Mhz, SPI0 clock source is bus clock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20556i5DBAAB59A7937DEE/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:34:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Master-clock-set-to-about-8-MHZ-in-KL25Z/m-p/683214#M42068</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-18T10:34:24Z</dc:date>
    </item>
  </channel>
</rss>

