<?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: how use spi set for using polling and interrupt?</title>
    <link>https://community.nxp.com/t5/S32K/how-use-spi-set-for-using-polling-and-interrupt/m-p/2120035#M50104</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1) SPI mode option (CPHA,CPOL) looks right, you should have SpiDataWidth = 8&lt;BR /&gt;2) Lpspi_Ip_SyncTransmit return after transfer is done or timeout happens. You need not to call other function&lt;BR /&gt;3) When Sync function is used there is no need to call Lpspi_Ip_ManageBuffers. This should be called periodically when Async function is used in polling mode (default)&lt;BR /&gt;4) After Lpspi_Ip_Init function is called, LPSPI_IP_POLLING mode is set as default. To change the default mode Lpspi_Ip_UpdateTransferMode should be called. INTC need to be set as well to enable SPI interrupt.&lt;BR /&gt;5) DMA is not needed for interrupt mode. You can refer to below example&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-SPI-Transmit-amp-Receive-Using-Interrupt-DS3-5/ta-p/2011866" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-SPI-Transmit-amp-Receive-Using-Interrupt-DS3-5/ta-p/2011866&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 08:32:56 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2025-06-20T08:32:56Z</dc:date>
    <item>
      <title>how use spi set for using polling and interrupt?</title>
      <link>https://community.nxp.com/t5/S32K/how-use-spi-set-for-using-polling-and-interrupt/m-p/2118938#M50049</link>
      <description>&lt;P&gt;i am trying to use spi communication with BNO080 chip.&lt;/P&gt;&lt;P&gt;and i am using s32ds version 3.6, RTS is 4.0.0.&lt;/P&gt;&lt;P&gt;mcu is s32k314.&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i already watched spi examples, so you don't give examples please.&lt;/P&gt;&lt;P&gt;also, i have a s32k344 evb board(172 Pins)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. would you check spi setting is right for using polling spi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a)this is BNO spi Communication Spec.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343630iD6927FE67C3C4E7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;b) second picture is my spi configure.&amp;nbsp;i am using spi2. cs pin is pcs0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343632iDD62028E0C2789CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.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="2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/343631iA625ECA87C9EF879/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. when i am using spi polling,&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;if Lpspi_Ip_SyncTransmit is use, automatically rxbuffer, txbuffer is done? after&amp;nbsp;Lpspi_Ip_SyncTransmit use, i don't need to call other function?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. i read spi user manual, i find&amp;nbsp;Lpspi_Ip_ManageBuffers() functions. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;after i call&amp;nbsp;Lpspi_Ip_SyncTransmit() function, do i have to use&amp;nbsp;Lpspi_Ip_ManageBuffers()&amp;nbsp; function? how this function use?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. if i use interrupt spi function, how i set spi configure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it is possible, would you show me pics for setting interrupt spi configure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. example has only polling and dma interrupt.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;if i use spi interrupt, i have to use dma?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also, it is possible, would you show me pics for setting interrupt spi configure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've thought about it a lot and done a lot of testing before asking&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and i attach BNO080 Datasheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks to help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 01:13:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-use-spi-set-for-using-polling-and-interrupt/m-p/2118938#M50049</guid>
      <dc:creator>rlaxortn</dc:creator>
      <dc:date>2025-06-19T01:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: how use spi set for using polling and interrupt?</title>
      <link>https://community.nxp.com/t5/S32K/how-use-spi-set-for-using-polling-and-interrupt/m-p/2120035#M50104</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1) SPI mode option (CPHA,CPOL) looks right, you should have SpiDataWidth = 8&lt;BR /&gt;2) Lpspi_Ip_SyncTransmit return after transfer is done or timeout happens. You need not to call other function&lt;BR /&gt;3) When Sync function is used there is no need to call Lpspi_Ip_ManageBuffers. This should be called periodically when Async function is used in polling mode (default)&lt;BR /&gt;4) After Lpspi_Ip_Init function is called, LPSPI_IP_POLLING mode is set as default. To change the default mode Lpspi_Ip_UpdateTransferMode should be called. INTC need to be set as well to enable SPI interrupt.&lt;BR /&gt;5) DMA is not needed for interrupt mode. You can refer to below example&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-SPI-Transmit-amp-Receive-Using-Interrupt-DS3-5/ta-p/2011866" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K312-SPI-Transmit-amp-Receive-Using-Interrupt-DS3-5/ta-p/2011866&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 08:32:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-use-spi-set-for-using-polling-and-interrupt/m-p/2120035#M50104</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2025-06-20T08:32:56Z</dc:date>
    </item>
  </channel>
</rss>

