<?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>S32KのトピックRe: S32K144   LSPI</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984762#M5697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks reply ,&lt;/P&gt;&lt;P&gt;i look this ,and i already set&amp;nbsp;LPSPI1-&amp;gt;CFGR1 = 0x00000001;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPSPI1-&amp;gt;CR = 0x00000000; /* Disable module for configuration */&lt;BR /&gt; LPSPI1-&amp;gt;IER = 0x00000000; /* Interrupts not used */&lt;BR /&gt; LPSPI1-&amp;gt;DER = 0x00000000; /* DMA not used */&lt;BR /&gt; LPSPI1-&amp;gt;CFGR0 = 0x00000000; /* Defaults: */&lt;BR /&gt; /* RDM0=0: rec'd data to FIFO as normal */&lt;BR /&gt; /* CIRFIFO=0; Circular FIFO is disabled */&lt;BR /&gt; /* HRSEL, HRPOL, HREN=0: Host request disabled */&lt;BR /&gt; LPSPI1-&amp;gt;CFGR1 = 0x00000001; /* Configurations: master mode*/&lt;BR /&gt; /* PCSCFG=0: PCS[3:2] are enabled */&lt;BR /&gt; /* OUTCFG=0: Output data retains last value when CS negated */&lt;BR /&gt; /* PINCFG=0: SIN is input, SOUT is output */&lt;BR /&gt; /* MATCFG=0: Match disabled */&lt;BR /&gt; /* PCSPOL=0: PCS is active low */&lt;BR /&gt; /* NOSTALL=0: Stall if Tx FIFO empty or Rx FIFO full */&lt;BR /&gt; /* AUTOPCS=0: does not apply for master mode */&lt;BR /&gt; /* SAMPLE=0: input data sampled on SCK edge */&lt;BR /&gt; /* MASTER=1: Master mode */&lt;BR /&gt; LPSPI1-&amp;gt;TCR = 0x5300000F; /* Transmit cmd: PCS3, 16 bits, prescale func'l clk by 4, etc*/&lt;BR /&gt; /* CPOL=0: SCK inactive state is low */&lt;BR /&gt; /* CPHA=1: Change data on SCK lead'g, capture on trail'g edge*/&lt;BR /&gt; /* PRESCALE=2: Functional clock divided by 2**2 = 4 */&lt;BR /&gt; /* PCS=3: Transfer using PCS3 */&lt;BR /&gt; /* LSBF=0: Data is transfered MSB first */&lt;BR /&gt; /* BYSW=0: Byte swap disabled */&lt;BR /&gt; /* CONT, CONTC=0: Continuous transfer disabled */&lt;BR /&gt; /* RXMSK=0: Normal transfer: rx data stored in rx FIFO */&lt;BR /&gt; /* TXMSK=0: Normal transfer: data loaded from tx FIFO */&lt;BR /&gt; /* WIDTH=0: Single bit transfer */&lt;BR /&gt; /* FRAMESZ=15: # bits in frame = 15+1=16 */&lt;BR /&gt; LPSPI1-&amp;gt;CCR = 0x04090808; /* Clock dividers based on prescaled func'l clk of 100 nsec */&lt;BR /&gt; /* SCKPCS=4: SCK to PCS delay = 4+1 = 5 (500 nsec) */&lt;BR /&gt; /* PCSSCK=4: PCS to SCK delay = 9+1 = 10 (1 usec) */&lt;BR /&gt; /* DBT=8: Delay between Transfers = 8+2 = 10 (1 usec) */&lt;BR /&gt; /* SCKDIV=8: SCK divider =8+2 = 10 (1 usec: 1 MHz baud rate) */&lt;BR /&gt; LPSPI1-&amp;gt;FCR = 0x00000003; /* RXWATER=0: Rx flags set when Rx FIFO &amp;gt;0 */&lt;BR /&gt; /* TXWATER=3: Tx flags set when Tx FIFO &amp;lt;= 3 */&lt;BR /&gt; LPSPI1-&amp;gt;CR = 0x00000009; /* Enable module for operation */&lt;BR /&gt; /* DBGEN=1: module enabled in debug mode */&lt;BR /&gt; /* DOZEN=0: module enabled in Doze mode */&lt;BR /&gt; /* RST=0: Master logic not reset */&lt;BR /&gt; /* MEN=1: Module is enabled */&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92325i7D21A362BB6042D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2019 02:11:16 GMT</pubDate>
    <dc:creator>oceansea</dc:creator>
    <dc:date>2019-11-14T02:11:16Z</dc:date>
    <item>
      <title>S32K144   LSPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984760#M5695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI，&lt;/P&gt;&lt;P&gt;i &amp;nbsp;use &amp;nbsp;the &amp;nbsp;LPSPI_s32k144 &amp;nbsp;example,i have a question.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92159i5A7E4DA3C8B89AC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if do this is ok,no problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i do this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92317i50067FCD62DFC095/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92280i1C70500855BFE22B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;is inly send message ,not receive ,when counter=10,it will stop ,not run .&lt;/P&gt;&lt;P&gt;i only need send message,and not any slave send to me ,so my receive buff not&lt;/P&gt;&lt;P&gt;any message ,why it &amp;nbsp;stop here?&lt;/P&gt;&lt;P&gt;and why the receive will affect the send&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 13:24:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984760#M5695</guid>
      <dc:creator>oceansea</dc:creator>
      <dc:date>2019-11-13T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LSPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984761#M5696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In this case, you need to set&amp;nbsp;CFGR1_NOSTALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984761#M5696</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-11-13T15:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LSPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984762#M5697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks reply ,&lt;/P&gt;&lt;P&gt;i look this ,and i already set&amp;nbsp;LPSPI1-&amp;gt;CFGR1 = 0x00000001;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPSPI1-&amp;gt;CR = 0x00000000; /* Disable module for configuration */&lt;BR /&gt; LPSPI1-&amp;gt;IER = 0x00000000; /* Interrupts not used */&lt;BR /&gt; LPSPI1-&amp;gt;DER = 0x00000000; /* DMA not used */&lt;BR /&gt; LPSPI1-&amp;gt;CFGR0 = 0x00000000; /* Defaults: */&lt;BR /&gt; /* RDM0=0: rec'd data to FIFO as normal */&lt;BR /&gt; /* CIRFIFO=0; Circular FIFO is disabled */&lt;BR /&gt; /* HRSEL, HRPOL, HREN=0: Host request disabled */&lt;BR /&gt; LPSPI1-&amp;gt;CFGR1 = 0x00000001; /* Configurations: master mode*/&lt;BR /&gt; /* PCSCFG=0: PCS[3:2] are enabled */&lt;BR /&gt; /* OUTCFG=0: Output data retains last value when CS negated */&lt;BR /&gt; /* PINCFG=0: SIN is input, SOUT is output */&lt;BR /&gt; /* MATCFG=0: Match disabled */&lt;BR /&gt; /* PCSPOL=0: PCS is active low */&lt;BR /&gt; /* NOSTALL=0: Stall if Tx FIFO empty or Rx FIFO full */&lt;BR /&gt; /* AUTOPCS=0: does not apply for master mode */&lt;BR /&gt; /* SAMPLE=0: input data sampled on SCK edge */&lt;BR /&gt; /* MASTER=1: Master mode */&lt;BR /&gt; LPSPI1-&amp;gt;TCR = 0x5300000F; /* Transmit cmd: PCS3, 16 bits, prescale func'l clk by 4, etc*/&lt;BR /&gt; /* CPOL=0: SCK inactive state is low */&lt;BR /&gt; /* CPHA=1: Change data on SCK lead'g, capture on trail'g edge*/&lt;BR /&gt; /* PRESCALE=2: Functional clock divided by 2**2 = 4 */&lt;BR /&gt; /* PCS=3: Transfer using PCS3 */&lt;BR /&gt; /* LSBF=0: Data is transfered MSB first */&lt;BR /&gt; /* BYSW=0: Byte swap disabled */&lt;BR /&gt; /* CONT, CONTC=0: Continuous transfer disabled */&lt;BR /&gt; /* RXMSK=0: Normal transfer: rx data stored in rx FIFO */&lt;BR /&gt; /* TXMSK=0: Normal transfer: data loaded from tx FIFO */&lt;BR /&gt; /* WIDTH=0: Single bit transfer */&lt;BR /&gt; /* FRAMESZ=15: # bits in frame = 15+1=16 */&lt;BR /&gt; LPSPI1-&amp;gt;CCR = 0x04090808; /* Clock dividers based on prescaled func'l clk of 100 nsec */&lt;BR /&gt; /* SCKPCS=4: SCK to PCS delay = 4+1 = 5 (500 nsec) */&lt;BR /&gt; /* PCSSCK=4: PCS to SCK delay = 9+1 = 10 (1 usec) */&lt;BR /&gt; /* DBT=8: Delay between Transfers = 8+2 = 10 (1 usec) */&lt;BR /&gt; /* SCKDIV=8: SCK divider =8+2 = 10 (1 usec: 1 MHz baud rate) */&lt;BR /&gt; LPSPI1-&amp;gt;FCR = 0x00000003; /* RXWATER=0: Rx flags set when Rx FIFO &amp;gt;0 */&lt;BR /&gt; /* TXWATER=3: Tx flags set when Tx FIFO &amp;lt;= 3 */&lt;BR /&gt; LPSPI1-&amp;gt;CR = 0x00000009; /* Enable module for operation */&lt;BR /&gt; /* DBGEN=1: module enabled in debug mode */&lt;BR /&gt; /* DOZEN=0: module enabled in Doze mode */&lt;BR /&gt; /* RST=0: Master logic not reset */&lt;BR /&gt; /* MEN=1: Module is enabled */&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92325i7D21A362BB6042D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 02:11:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984762#M5697</guid>
      <dc:creator>oceansea</dc:creator>
      <dc:date>2019-11-14T02:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LSPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984763#M5698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't see the bit being set in the code.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;It should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPSPI1-&amp;gt;CFGR1 = 0x00000009;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;// [3]&amp;nbsp;NOSTALL = 0b1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;// [0]&amp;nbsp;MASTER = 0b1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BR, Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 10:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984763#M5698</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-11-14T10:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LSPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984764#M5699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;yes ,is ny bad ,and i do&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPSPI1-&amp;gt;CFGR1 = 0x00000009; &amp;nbsp; is OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;but i still have a problem ,not any salve send to me, why the receive buff have data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 02:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984764#M5699</guid>
      <dc:creator>oceansea</dc:creator>
      <dc:date>2019-11-15T02:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LSPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984765#M5700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The LPSPI module is always reading the MISO port even if the pin is disconnected.&lt;/P&gt;&lt;P&gt;The example that you were using stopped&amp;nbsp;transmitting when the RX&amp;nbsp;FIFO was full to prevent overflowing.&lt;/P&gt;&lt;P&gt;The NOSTALL bit allows&amp;nbsp;transmitting even if the RX FIFO is full.&lt;/P&gt;&lt;P&gt;I mentioned that to point out the issue here&amp;nbsp;was the RX FIFO overflow.&lt;/P&gt;&lt;P&gt;But you can mask the RX data&amp;nbsp;TCR_RXMSK = 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92964i71FFE31273CD78E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 10:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984765#M5700</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-11-15T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144   LSPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984766#M5701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;it &amp;nbsp;really &amp;nbsp; helps ,thank your &amp;nbsp;very.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;haiyang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Nov 2019 02:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-LSPI/m-p/984766#M5701</guid>
      <dc:creator>oceansea</dc:creator>
      <dc:date>2019-11-17T02:58:54Z</dc:date>
    </item>
  </channel>
</rss>

