<?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>S32 SDKのトピックRe: S32K148 LPSPI Baudrate error</title>
    <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1434121#M2464</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any news?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 11:24:32 GMT</pubDate>
    <dc:creator>FBS</dc:creator>
    <dc:date>2022-03-25T11:24:32Z</dc:date>
    <item>
      <title>S32K148 LPSPI Baudrate error</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1427263#M2440</link>
      <description>&lt;P&gt;Hi NXP community&lt;/P&gt;&lt;P&gt;I'm trying to configure LPSPI0 master to transmit at 4,8MBaudrate in RUN mode, but I have some issues that I explain below. I'm working with the s32k148 EVB and S32DS IDE (Version 3.4).&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all I try to set LPSPI0 master at 2,4MBaudrate. The applied settings can be seen in the following images.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1NXP.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/173391iFD52D7967DE31D76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1NXP.JPG" alt="1NXP.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NXP2.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/173392iAFE302AEFF6141F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NXP2.JPG" alt="NXP2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I check it in oscilloscope it seems that the transmitted frame contains the correct information I wanted to send, but at a lower baud rate than I set. The actual baud rate being applied is 2MBaudrate.&lt;/P&gt;&lt;P&gt;Then I try to set LPSPI0 at 4,8MBaudrate with LPSPI0_CLK_SEL = 24MHz (FIRCDIV2 / 2). When I check it in oscilloscope the sent frame was altered and the baud rate of the transmission was lower than that set (4MBaudrate).&lt;/P&gt;&lt;P&gt;I seem to be applying incorrect settings to the LPSPI source clock but I don't see what's going on. Any suggestion?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 09:34:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1427263#M2440</guid>
      <dc:creator>FBS</dc:creator>
      <dc:date>2022-03-12T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI Baudrate error</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1427373#M2441</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@FBS" target="_blank"&gt;Hi@FBS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1647224091272.png" style="width: 447px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/173434i44BD57EDB6602307/image-dimensions/447x287?v=v2" width="447" height="287" role="button" title="Senlent_0-1647224091272.png" alt="Senlent_0-1647224091272.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="Senlent_1-1647224100917.png" style="width: 452px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/173435iF8D08220CB1C7153/image-dimensions/452x144?v=v2" width="452" height="144" role="button" title="Senlent_1-1647224100917.png" alt="Senlent_1-1647224100917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;take a look at the function : &lt;STRONG&gt;LPSPI_SetBaudRate();&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;this function takes in the desired baud rate and calculates the nearset possible baud rate,and retures the calculated baud rate in bits-per-second.&lt;/P&gt;
&lt;P&gt;in other words, this function will change the set baudrate to the nearset possible baud rate.&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Jim,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 02:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1427373#M2441</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2022-03-14T02:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI Baudrate error</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1427793#M2445</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the return value of the function &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;LPSPI_SetBaudRate() &lt;/SPAN&gt;&lt;/STRONG&gt;and coincides with the devition I was saying.&lt;/P&gt;&lt;P&gt;But there’s still one thing I don’t understand. When I set LPSPI0 &lt;SPAN&gt;at 4,8MBaudrate with LPSPI0_CLK_SEL = 24MHz (FIRCDIV2 / 2)&lt;/SPAN&gt;, there seems to be a pause in the middle of the 4 bytes I’m sending.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inkedphoto5870704704739195328_LI.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/173541i8E918F67D966AFAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Inkedphoto5870704704739195328_LI.jpg" alt="Inkedphoto5870704704739195328_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I tried to sending the same frame with the same baud rate but switching to to HSRUN mode. This pause disappears, do you know what it might be due to?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1427793#M2445</guid>
      <dc:creator>FBS</dc:creator>
      <dc:date>2022-03-14T14:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI Baudrate error</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1428060#M2446</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@FBS" target="_blank"&gt;Hi@FBS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I haven't had this problem before, but&amp;nbsp; I feel that it has something to do with the clock configuration of some modules. Without more information, I can't judge the possible reasons.can you tell me which routine you use?&lt;/P&gt;
&lt;P&gt;BR!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Jim,&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 01:29:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1428060#M2446</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2022-03-15T01:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI Baudrate error</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1430068#M2451</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry for the late response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To isolate the problem as much as possible I have done a project that only sets LPSPI0 as master with the parameters discussed in the previous post. The program makes an infinite loop that only makes transmissions and wais. That way you can see the problem I'm talking about with the oscilloscope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you need to clarify anything about the management or configuration I do in the LPSPI interface, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 11:41:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1430068#M2451</guid>
      <dc:creator>FBS</dc:creator>
      <dc:date>2022-03-17T11:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI Baudrate error</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1430164#M2452</link>
      <description>&lt;P&gt;ok, i probably won't have time to test for you until next week&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1430164#M2452</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2022-03-17T14:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 LPSPI Baudrate error</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1434121#M2464</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any news?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 11:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K148-LPSPI-Baudrate-error/m-p/1434121#M2464</guid>
      <dc:creator>FBS</dc:creator>
      <dc:date>2022-03-25T11:24:32Z</dc:date>
    </item>
  </channel>
</rss>

