<?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のトピックLPSPI -Transfer Complete Interrupt</title>
    <link>https://community.nxp.com/t5/S32K/LPSPI-Transfer-Complete-Interrupt/m-p/1008224#M6047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon, &lt;/P&gt;&lt;P&gt;I am newbie in ARM world and I would like to kindly ask for help. I am using S32K148EVB-Q176. I would like to use LPSPI0 interrupt for complete transfer. I found&amp;nbsp; that I have to set TCIE bit in IER register to 1 to allow it. Unfortunately i do not know exact syntax how to write down, I would like to kindly ask for some example. Moreover I have no idea how to delete IRQ status flag after ISR routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2020 13:26:41 GMT</pubDate>
    <dc:creator>daniel_petrakaj</dc:creator>
    <dc:date>2020-02-10T13:26:41Z</dc:date>
    <item>
      <title>LPSPI -Transfer Complete Interrupt</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Transfer-Complete-Interrupt/m-p/1008224#M6047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon, &lt;/P&gt;&lt;P&gt;I am newbie in ARM world and I would like to kindly ask for help. I am using S32K148EVB-Q176. I would like to use LPSPI0 interrupt for complete transfer. I found&amp;nbsp; that I have to set TCIE bit in IER register to 1 to allow it. Unfortunately i do not know exact syntax how to write down, I would like to kindly ask for some example. Moreover I have no idea how to delete IRQ status flag after ISR routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 13:26:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Transfer-Complete-Interrupt/m-p/1008224#M6047</guid>
      <dc:creator>daniel_petrakaj</dc:creator>
      <dc:date>2020-02-10T13:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI -Transfer Complete Interrupt</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Transfer-Complete-Interrupt/m-p/1008225#M6048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to set it in this way&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPSPI0-&amp;gt; IER = 0x200; //set TCIE to 1&lt;BR /&gt;&amp;nbsp; INT_SYS_InstallHandler(LPSPI0_IRQn, &amp;amp;LPSP0_ISR, (isr_t*) 0); // handler for ISR routine function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void LPSP0_ISR (void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PINS_DRV_SetPins(PTB, 1&amp;lt;&amp;lt;0U);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PINS_DRV_ClearPins(PTB, 1&amp;lt;&amp;lt;0U);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPSPI0-&amp;gt; IER |= LPSPI_IER_TCIE_MASK ; //delete flag&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;It working partly, unfortunately than program always stop in LPSP0_ISR function in debugging mode. Please do you have idea what is wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 11:21:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Transfer-Complete-Interrupt/m-p/1008225#M6048</guid>
      <dc:creator>daniel_petrakaj</dc:creator>
      <dc:date>2020-02-11T11:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI -Transfer Complete Interrupt</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Transfer-Complete-Interrupt/m-p/1008226#M6049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;You only need to clear the LPSPI_SR[TCF] flag by writing 1 to it (w1c) instead of the last line in the interrupt routine.&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/102361iDEC1B0EA1B879427/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;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 09:18:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Transfer-Complete-Interrupt/m-p/1008226#M6049</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-20T09:18:21Z</dc:date>
    </item>
  </channel>
</rss>

