<?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>LPC MicrocontrollersのトピックRe: SPI clock resting on logic high when CPOL=0</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1536698#M50391</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Could you please confirm&amp;nbsp;&amp;nbsp;SPI configuration register set CPOL to 0 correctly, can using IDE register view.&lt;/P&gt;
&lt;P&gt;And how about use the SPI example under SDK to test.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 02:19:52 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2022-10-13T02:19:52Z</dc:date>
    <item>
      <title>SPI clock resting on logic high when CPOL=0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1535865#M50376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an SPI setup in the FLEXCOMM8 of LPC55s69 board. Its setup to be CPOL=0 and CPHA=0. I would expect the SCLK to return to 0 after each packet. However when scoping this, the observed behaviour is the opposite.&lt;/P&gt;&lt;P&gt;Is there a something that I can change to reverse this behaviour, as the chip i am interfacing with is getting erroneous data&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 22:27:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1535865#M50376</guid>
      <dc:creator>denjos007</dc:creator>
      <dc:date>2022-10-11T22:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: SPI clock resting on logic high when CPOL=0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1536698#M50391</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;Could you please confirm&amp;nbsp;&amp;nbsp;SPI configuration register set CPOL to 0 correctly, can using IDE register view.&lt;/P&gt;
&lt;P&gt;And how about use the SPI example under SDK to test.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 02:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1536698#M50391</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-10-13T02:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: SPI clock resting on logic high when CPOL=0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1540180#M50450</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;I am not using the MCUXpressoIDE, instead, I am using CLion, and in that case, I am not able to view the registers using PyOCD. I had raised a community post on it and was basically asked to use the MCUXpressoIDE. So i can not confirm it using register view, however using the confid tools, i am setting the CPOL to 0 and seeing the same in pheripherals.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;&lt;SPAN&gt;spi_master_config_t &lt;/SPAN&gt;&lt;SPAN&gt;FLEXCOMM8_config &lt;/SPAN&gt;= &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;.enableLoopback &lt;/SPAN&gt;= &lt;SPAN&gt;false&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.enableMaster &lt;/SPAN&gt;= &lt;SPAN&gt;true&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.polarity &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_ClockPolarityActiveHigh&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.phase &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_ClockPhaseFirstEdge&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.direction &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_MsbFirst&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.baudRate_Bps &lt;/SPAN&gt;= &lt;SPAN&gt;1000000UL&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.dataWidth &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_Data8Bits&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.sselNum &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_Ssel0&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.sselPol &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_SpolActiveAllLow&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.txWatermark &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_TxFifo0&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.rxWatermark &lt;/SPAN&gt;= &lt;SPAN&gt;kSPI_RxFifo1&lt;/SPAN&gt;,&lt;BR /&gt;  &lt;SPAN&gt;.delayConfig &lt;/SPAN&gt;= &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;.preDelay &lt;/SPAN&gt;= &lt;SPAN&gt;0U&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;.postDelay &lt;/SPAN&gt;= &lt;SPAN&gt;0U&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;.frameDelay &lt;/SPAN&gt;= &lt;SPAN&gt;0U&lt;/SPAN&gt;,&lt;BR /&gt;    &lt;SPAN&gt;.transferDelay &lt;/SPAN&gt;= &lt;SPAN&gt;0U&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;static void &lt;/SPAN&gt;&lt;SPAN&gt;FLEXCOMM8_init&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;/* Initialization function */&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;SPI_MasterInit&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FLEXCOMM8_PERIPHERAL&lt;/SPAN&gt;, &amp;amp;&lt;SPAN&gt;FLEXCOMM8_config&lt;/SPAN&gt;, &lt;SPAN&gt;FLEXCOMM8_CLOCK_SOURCE&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I had used a sample program similar to the SPI example and found the same behaviour&lt;/P&gt;&lt;P&gt;Now if i change the CPOL to 1, the behavior is as required. SPI clock and MOSI outputs default to low. This means that i cannot use CPOL=0 for interfacing with the system I am using. Is there any way to reverse this behaviour for CPOL=0?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 15:23:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1540180#M50450</guid>
      <dc:creator>denjos007</dc:creator>
      <dc:date>2022-10-19T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: SPI clock resting on logic high when CPOL=0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1543041#M50493</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I use the SDK demo "lpcxpresso55s69_spi_interrupt_b2b_transfer_master"test the on my side, there is no problem.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1666667104608.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197953i59BD7E59A9060A00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1666667104608.png" alt="Alice_Yang_0-1666667104608.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 03:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-clock-resting-on-logic-high-when-CPOL-0/m-p/1543041#M50493</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-10-25T03:05:36Z</dc:date>
    </item>
  </channel>
</rss>

