<?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: MCXN236 FLEXCOMM SPI issue in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2063389#M2705</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is my setting. Is it OK?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;CLOCK_SetClkDiv(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_DivFlexcom3Clk&lt;/SPAN&gt;&lt;SPAN&gt;, 1u);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CLOCK_AttachClk(&lt;/SPAN&gt;&lt;SPAN&gt;kFRO_HF_DIV_to_FLEXCOMM3&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sean Wu&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 18 Mar 2025 03:35:32 GMT</pubDate>
    <dc:creator>seanwu</dc:creator>
    <dc:date>2025-03-18T03:35:32Z</dc:date>
    <item>
      <title>MCXN236 FLEXCOMM SPI issue</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2062776#M2693</link>
      <description>&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;STRONG&gt;lpspi_interrupt_b2b_master&lt;/STRONG&gt;, and&amp;nbsp;&lt;STRONG&gt;lpspi_interrupt_b2b_slave&lt;/STRONG&gt; examples in MCXN236 SDK 2.16.00 to test SPI function.&lt;/P&gt;&lt;P&gt;I want to check whether it can run 20MHz. But when I set&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;#define TRANSFER_BAUDRATE&lt;/STRONG&gt; to 20000000. The data transfer will be error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please help to check whether FLEXCOMM SPI can run 20MHz, and how to set?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;THanks.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Sean Wu.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 06:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2062776#M2693</guid>
      <dc:creator>seanwu</dc:creator>
      <dc:date>2025-03-17T06:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN236 FLEXCOMM SPI issue</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2063009#M2699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/46187"&gt;@seanwu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding speed, you can refer to the MCXN236 data sheet chapter 4.6.2.&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="Harry_Zhang_0-1742207698376.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328421iCDE1B245AA240CD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1742207698376.png" alt="Harry_Zhang_0-1742207698376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After you set #define TRANSFER_BAUDRATE to 20000000.&lt;/P&gt;
&lt;P&gt;You also need to&amp;nbsp;two factors:&lt;/P&gt;
&lt;P&gt;1. Peripheral Clock Configuration: The SPI baud rate is derived from the peripheral clock. Ensure that the peripheral clock is set appropriately to achieve the desired SPI speed.&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;2. Baud Rate Divisor: The SPI baud rate is determined by dividing the peripheral clock by a specific divisor. Selecting the correct divisor is crucial for achieving the desired baud rate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Harry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 10:41:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2063009#M2699</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-17T10:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN236 FLEXCOMM SPI issue</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2063389#M2705</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is my setting. Is it OK?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;CLOCK_SetClkDiv(&lt;/SPAN&gt;&lt;SPAN&gt;kCLOCK_DivFlexcom3Clk&lt;/SPAN&gt;&lt;SPAN&gt;, 1u);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CLOCK_AttachClk(&lt;/SPAN&gt;&lt;SPAN&gt;kFRO_HF_DIV_to_FLEXCOMM3&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sean Wu&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Mar 2025 03:35:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2063389#M2705</guid>
      <dc:creator>seanwu</dc:creator>
      <dc:date>2025-03-18T03:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN236 FLEXCOMM SPI issue</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2063685#M2710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/46187"&gt;@seanwu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer to my picture to configure the clock.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harry_Zhang_0-1742292618248.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328594i9CC3A2DF86EE1FC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harry_Zhang_0-1742292618248.png" alt="Harry_Zhang_0-1742292618248.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After my testing, configuring the clock in this way can meet your requirements.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 10:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2063685#M2710</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-18T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN236 FLEXCOMM SPI issue</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2064179#M2711</link>
      <description>&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;Thanks for your help. I try it as your seeting, and it can run 20MHz. But the main&amp;nbsp; clock will reduce to 120Hz. Does it effect performance?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;And I have another question of delay time of&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;pcsToSckDelay&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;lastSckToPcsDelay&lt;/STRONG&gt;, and&amp;nbsp;&lt;STRONG&gt;betweenTransferDelay&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&lt;SPAN&gt;How do I set the value like below code?&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&lt;SPAN&gt;masterConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;pcsToSckDelayInNanoSec&lt;/SPAN&gt;&lt;SPAN&gt; = 1000000000U / (&lt;/SPAN&gt;&lt;SPAN&gt;masterConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;baudRate&lt;/SPAN&gt;&lt;SPAN&gt; * 2U);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&lt;SPAN&gt;masterConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;lastSckToPcsDelayInNanoSec&lt;/SPAN&gt;&lt;SPAN&gt; = 1000000000U / (&lt;/SPAN&gt;&lt;SPAN&gt;masterConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;baudRate&lt;/SPAN&gt;&lt;SPAN&gt; * 2U);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&lt;SPAN&gt;masterConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;betweenTransferDelayInNanoSec&lt;/SPAN&gt;&lt;SPAN&gt; = 1000000000U / (&lt;/SPAN&gt;&lt;SPAN&gt;masterConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;baudRate&lt;/SPAN&gt;&lt;SPAN&gt; * 2U);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&lt;SPAN&gt;And in RM, there is a example, but I don't know why.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="terminal,monaco"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="seanwu_0-1742346631837.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328700iC0FA961316F3CAF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="seanwu_0-1742346631837.png" alt="seanwu_0-1742346631837.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="terminal,monaco"&gt;Thanks.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="terminal,monaco"&gt;BR,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="terminal,monaco"&gt;Sean Wu&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Mar 2025 01:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2064179#M2711</guid>
      <dc:creator>seanwu</dc:creator>
      <dc:date>2025-03-19T01:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: MCXN236 FLEXCOMM SPI issue</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2065279#M2722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/46187"&gt;@seanwu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;But the main&amp;nbsp; clock will reduce to 120Hz. Does it effect performance?&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;I'm just giving you a demonstration,&amp;nbsp;you can adjust the clock according to your needs.&lt;/P&gt;
&lt;P&gt;"How do I set the value like below code?"&lt;/P&gt;
&lt;P&gt;I think it depends on the slave device’s timing specs.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 06:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/MCXN236-FLEXCOMM-SPI-issue/m-p/2065279#M2722</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2025-03-20T06:27:00Z</dc:date>
    </item>
  </channel>
</rss>

