<?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>Wireless MCUのトピックRe: kw 45 spi frequency</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/2012248#M19367</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237188"&gt;@Aladdine&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You are stuck at 6MHz because you have not considered all the clock dividers.&lt;/P&gt;
&lt;P&gt;Starting with the&amp;nbsp;&lt;SPAN&gt;lpspi_interrupt_b2b_master example from the SDK, below are the things to take into consideration:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- The clock for peripherals is generated by the MRCC block from the FIRC (Fast Internal Reference Clock):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_2-1733940855765.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315439iFFF62E873021C6C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_2-1733940855765.png" alt="Alexandre_Moulinet_2-1733940855765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The FIRC range is configured via the below configuration and APIs:&lt;/P&gt;
&lt;P&gt;[clock_config.c file]&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_3-1733941098881.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315440iBED90DA936237979/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_3-1733941098881.png" alt="Alexandre_Moulinet_3-1733941098881.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And the above configuration&amp;nbsp;set the FIRC clock to 96MHz and is applied in the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;void BOARD_BootClockRUN(void)&lt;/STRONG&gt;&lt;/EM&gt; API:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_4-1733941340675.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315441iECED708091DD2A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_4-1733941340675.png" alt="Alexandre_Moulinet_4-1733941340675.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Each peripheral have a dedicated MRCC register to configure the source clock of the MRCC of this peripheral and a divider to scale the output clock:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_1-1733940646938.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315438iC64E498B5A46CD21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alexandre_Moulinet_1-1733940646938.png" alt="Alexandre_Moulinet_1-1733940646938.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This action is performed in the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;main()&lt;/STRONG&gt;&lt;/EM&gt; function here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_5-1733941727925.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315443iFA8D81020ACAA788/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_5-1733941727925.png" alt="Alexandre_Moulinet_5-1733941727925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, by default, the source frequency of the LPSPI0 is equal to 6MHz, which represents the limitation you are seeing.&lt;/P&gt;
&lt;P&gt;Therefore, when calling&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;LPSPI_MasterInit()&lt;/STRONG&gt;&lt;/EM&gt; API, the baudrate calculation is based on this frequency value, which is lower than 10MHz!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To get to 9.6MHz, the easiest solution is to change the divider from 16 to a value compromised between 1 and 9.&lt;BR /&gt;I personally tested with a divider set to 1 (&lt;EM&gt;&lt;STRONG&gt;kSCG_SysClkDivBy1&lt;/STRONG&gt;&lt;/EM&gt;) and I managed to get a source clock for the LPSPI0 to 9.6MHz:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_6-1733941995109.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315444iA8101B481E983DED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_6-1733941995109.png" alt="Alexandre_Moulinet_6-1733941995109.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please try this and let us know if you can get the LPSPI0 clock to 9.6MHz.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Alex&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 18:36:24 GMT</pubDate>
    <dc:creator>Alexandre_Moulinet</dc:creator>
    <dc:date>2024-12-11T18:36:24Z</dc:date>
    <item>
      <title>kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1948693#M18871</link>
      <description>&lt;P class=""&gt;hi,&lt;/P&gt;&lt;P class=""&gt;i am currently testing spi communication between the KW45B41Z-EVK and the NCJ29D6. The NCJ29D6 EVK has successfully communicated with the S32K144 EVK via SPI.&lt;/P&gt;&lt;P class=""&gt;The SPI frequency for the NCJ29D6 is set to 10 MHz. I have also modified the SPI frequency for the KW45 to 10 MHz. However, I am unable to achieve this. In the code snippet below, the SPI frequency reached 10 MHz a few times, but then it has not been able to reach 10 MHz again.&lt;/P&gt;&lt;P class=""&gt;The KW45 is the NXP KW45EVK.&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;HI，&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;我现在测试 KW45B41Z-EVK 与 NCJ29D6 进行SPI 通信。NCJ29D6 EVK与 S32K144 EVK SPI 通讯成功过,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;NCJ29D6 的 SPI频率为 10MHZ。所有我将 KW45 SPI频率 也修改为10MHZ。但是我无法做到。下图是部分KW45的代码有过几次 SPI频率达到10MHZ，之后就再也无法得到 10MHZ ？。&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;KW45为 NXP 的KW45EVK。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trent_0-1725595212651.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297508iD5C0FD0C710BB47D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trent_0-1725595212651.png" alt="trent_0-1725595212651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trent_1-1725595225952.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297509iBBA1A9957D0948B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trent_1-1725595225952.png" alt="trent_1-1725595225952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trent_2-1725595251694.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297510iC977FDF3414E2EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trent_2-1725595251694.png" alt="trent_2-1725595251694.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="trent_3-1725595279449.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/297511iF4397EEEDC594BD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="trent_3-1725595279449.png" alt="trent_3-1725595279449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 04:03:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1948693#M18871</guid>
      <dc:creator>trent</dc:creator>
      <dc:date>2024-09-06T04:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1950337#M18885</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing well. Are you using any SDK example as a base? What SDK version are you using? Have you tried with some example just modifying the baudrate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 20:31:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1950337#M18885</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2024-09-09T20:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1950881#M18889</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;the sdk are using is sdk_2_12_5_KW45B41Z83xxxA, and the version is 2.12.5. I have tried both&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lpspi_interrupt_b2b_transfer_master&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lpspi_polling_b2b_transfer_master&lt;/P&gt;&lt;P class=""&gt;I have set the maximum SPI baud rate to 1 MHz, and any higher rate causes issues. How can I modify the SPI baud rate to 10 MHz?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;使用的SDK是 SDK_2_12_5_KW45B41Z83xxxA Version 为 2.12.5 ，我试过lpspi _interrupt_b2b_transfer_master h和 lpspi_polling_b2b_transfer_master，这个两个例程。&lt;/P&gt;&lt;P&gt;我试过SPI的波特率最大修改到1MHZ。波特率再大就有问题了。我要如何才能将 SPI的波特率修改到 10MHZ？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 08:43:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1950881#M18889</guid>
      <dc:creator>trent</dc:creator>
      <dc:date>2024-09-10T08:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1952596#M18893</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you modify the TRANSFER_BAUDRATE and the divValue of theCLOCK_SetIpSrcDiv in the kw45b41zevk_lpspi_interrupt_b2b_master, you could get a baudrate around 9.6MHz.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is working on my side. I am using SDK v2.16.000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 21:07:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1952596#M18893</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2024-09-11T21:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1954051#M18905</link>
      <description>&lt;P&gt;Hello，&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;I want to use spi in polling mode. i tested&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lpspi_polling_transfer_master&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and made some modifications to it. However, the SCK signal is sometimes not continuous, as shown in the image. Is there any way to improve this?&lt;/P&gt;&lt;P&gt;我想要以轮询方式使用 SPI ，我测试了 lpspi_polling_transfer_master,对它进行了如下修改。但是SCK有时不连续，如下图所显，有什么办法可以改进吗？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Sep 2024 07:27:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1954051#M18905</guid>
      <dc:creator>trent</dc:creator>
      <dc:date>2024-09-13T07:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1954425#M18914</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the same modifications to the "kw45b41zevk_lpspi_polling_b2b_transfer_master" example, you can get the same frequency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like the behavior you are seeing is related to the logic analyzer. Is the communication not working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 17:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1954425#M18914</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2024-09-13T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1954583#M18916</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;yes, referring to the "NCJ29D6 -KW45 TESTWAREHOST USER GUIDE," we are testing the SPI communication between NCJ29D6 and KW45. The communication is not working; KW45 resets NCJ29D6, and the KW45 EVK does not receive the startup sequence from NCJ29D6. KW45 is an NXP EVK, while NCJ29D6 is a custom board we made that can communicate via SPI with the S32K144. I hope you can provide me with some suggestions.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;是的，参考 《NCJ29D6 -KW45 TESTWAREHOST USER GUIDE》，测试 NCJ29D6 与 KW45 的 SPI 通讯。 KW45复位 NCJ29D6 ，KW45EVK 收不到 NCJ29D6的启动 sequence，KW45是 NXP的EVK。NCJ29D6是我们自己制作的板子，它可以S32K144通过SPI通讯。希望您能给我一些建议。&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 14 Sep 2024 03:26:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1954583#M18916</guid>
      <dc:creator>trent</dc:creator>
      <dc:date>2024-09-14T03:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1955776#M18927</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I sent you a private message!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ricardo&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 17:19:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/1955776#M18927</guid>
      <dc:creator>Ricardo_Zamora</dc:creator>
      <dc:date>2024-09-17T17:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/2000520#M19295</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184557"&gt;@Ricardo_Zamora&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you provide us the solution that you gave to&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/217589"&gt;@trent&lt;/a&gt;&amp;nbsp;because we are encountering the same issue being that we're stuck to 6MHz approx. for the LPSPI0/1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We've correctly configured the clock tree with the maximum speed we could set and the LPSPI0/1 to 48MHz through each block, using the FIRC source which is running at 192MHz and defined a baudrate to 10MHz as we're trying to achieve it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The used example is the lpspi_interrupt_b2b_master provided for the same version that you have (&lt;SPAN&gt;v2.16.000), please see the attachment below for our exact configuration.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Any assistance would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aladdine.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 21:32:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/2000520#M19295</guid>
      <dc:creator>Aladdine</dc:creator>
      <dc:date>2024-11-23T21:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/2012248#M19367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237188"&gt;@Aladdine&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You are stuck at 6MHz because you have not considered all the clock dividers.&lt;/P&gt;
&lt;P&gt;Starting with the&amp;nbsp;&lt;SPAN&gt;lpspi_interrupt_b2b_master example from the SDK, below are the things to take into consideration:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- The clock for peripherals is generated by the MRCC block from the FIRC (Fast Internal Reference Clock):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_2-1733940855765.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315439iFFF62E873021C6C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_2-1733940855765.png" alt="Alexandre_Moulinet_2-1733940855765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The FIRC range is configured via the below configuration and APIs:&lt;/P&gt;
&lt;P&gt;[clock_config.c file]&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_3-1733941098881.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315440iBED90DA936237979/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_3-1733941098881.png" alt="Alexandre_Moulinet_3-1733941098881.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And the above configuration&amp;nbsp;set the FIRC clock to 96MHz and is applied in the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;void BOARD_BootClockRUN(void)&lt;/STRONG&gt;&lt;/EM&gt; API:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_4-1733941340675.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315441iECED708091DD2A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_4-1733941340675.png" alt="Alexandre_Moulinet_4-1733941340675.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Each peripheral have a dedicated MRCC register to configure the source clock of the MRCC of this peripheral and a divider to scale the output clock:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_1-1733940646938.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315438iC64E498B5A46CD21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alexandre_Moulinet_1-1733940646938.png" alt="Alexandre_Moulinet_1-1733940646938.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This action is performed in the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;main()&lt;/STRONG&gt;&lt;/EM&gt; function here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_5-1733941727925.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315443iFA8D81020ACAA788/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_5-1733941727925.png" alt="Alexandre_Moulinet_5-1733941727925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, by default, the source frequency of the LPSPI0 is equal to 6MHz, which represents the limitation you are seeing.&lt;/P&gt;
&lt;P&gt;Therefore, when calling&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;LPSPI_MasterInit()&lt;/STRONG&gt;&lt;/EM&gt; API, the baudrate calculation is based on this frequency value, which is lower than 10MHz!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To get to 9.6MHz, the easiest solution is to change the divider from 16 to a value compromised between 1 and 9.&lt;BR /&gt;I personally tested with a divider set to 1 (&lt;EM&gt;&lt;STRONG&gt;kSCG_SysClkDivBy1&lt;/STRONG&gt;&lt;/EM&gt;) and I managed to get a source clock for the LPSPI0 to 9.6MHz:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexandre_Moulinet_6-1733941995109.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/315444iA8101B481E983DED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alexandre_Moulinet_6-1733941995109.png" alt="Alexandre_Moulinet_6-1733941995109.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please try this and let us know if you can get the LPSPI0 clock to 9.6MHz.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Alex&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 18:36:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/2012248#M19367</guid>
      <dc:creator>Alexandre_Moulinet</dc:creator>
      <dc:date>2024-12-11T18:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: kw 45 spi frequency</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/2014535#M19376</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/92115"&gt;@Alexandre_Moulinet&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You've pinpointed the exact issue, it seems that we've intialized LPSPI1 two times, once in the clock_config.c file and the second one at the beginning of the main file, right after calling the BOARD_ClockRUN method.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;After removing this line, we've successfully reached 9.6MHz as you described.&lt;BR /&gt;&lt;BR /&gt;Thank you for the correction! That was a silly question on my part, but I appreciate your patience and help.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aladdine.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 14:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/kw-45-spi-frequency/m-p/2014535#M19376</guid>
      <dc:creator>Aladdine</dc:creator>
      <dc:date>2024-12-16T14:47:10Z</dc:date>
    </item>
  </channel>
</rss>

