<?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: how to trigger  a receive terminal count interrupt request</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1314746#M45992</link>
    <description>&lt;P&gt;I have the same problem. I set the Uart2 as the source peripheral and SDRAM as the destination. In the meantime, use uart2 as the flow controller. According to what has been specified in the manual of lpc3250, if using a peripheral as the transfer flow controller, the TC interrupt will be triggered when a DMA request is sent. Also, the manual says that UART receive DMA request is sent if the amount of received bytes in the FIFO exceeds the receive FIFO trigger level. Everything seems very clear according to the manual, but in practice it cannot work. So what has to be pay attention to when I try to use a DMA to transfer data frames received of which the length is unknown in prior via UART2, and want to be informed when the transfer is done?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 18:01:30 GMT</pubDate>
    <dc:creator>ywzhu</dc:creator>
    <dc:date>2021-07-28T18:01:30Z</dc:date>
    <item>
      <title>how to trigger  a receive terminal count interrupt request</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1245291#M44276</link>
      <description>Recently, I am using lpc3250 to receive UART and SSP DMA data.As a result, DMA has carried data to buffer, but it has not triggered the terminal count interrupt request. Strangely enough, sending data can trigger the terminal count interrupt request.I am doubt that if there are any registers I haven't configured well.Follows are part of my configuration code static void ssp1_dma_rcvd_config(void) { SSP_DRVDAT_T *spicfgptr = (SSP_DRVDAT_T *) sspdev2; /* DMA传输参数设置 */ ssprx1_dmact.pdmaregs-&amp;gt;dma_chan[ssprx1_dmact.dmach].src_addr = (UNS_32)&amp;amp;(spicfgptr-&amp;gt;regptr-&amp;gt;data); ssprx1_dmact.pdmaregs-&amp;gt;dma_chan[ssprx1_dmact.dmach].lli = 0; ssprx1_dmact.pdmaregs-&amp;gt;dma_chan[ssprx1_dmact.dmach].dest_addr = (UNS_32)&amp;amp;rxbuff1; ssprx1_dmact.pdmaregs-&amp;gt;dma_chan[ssprx1_dmact.dmach].control = (DMAC_CHAN_INT_TC_EN | DMAC_CHAN_DEST_AUTOINC | DMAC_CHAN_DEST_WIDTH_8 |DMAC_CHAN_SRC_WIDTH_8| DMAC_CHAN_DEST_BURST_1| DMAC_CHAN_SRC_BURST_1|DMAC_CHAN_TRANSFER_SIZE(5)); ssprx1_dmact.pdmaregs-&amp;gt;sync |= DMA_PER_SSP1_RX; ssprx1_dmact.pdmaregs-&amp;gt;sw_burst_req = DMA_PER_SSP1_RX; /* DMA配置并开启传输 */ ssprx1_dmact.pdmaregs-&amp;gt;dma_chan[ssprx1_dmact.dmach].config_ch = (DMAC_CHAN_IE | DMAC_CHAN_FLOW_D_P2M | DMAC_CHAN_ITC | DMAC_SRC_PERIP(DMA_PERID_SSP1_RX) | DMAC_CHAN_ENABLE); spicfgptr-&amp;gt;regptr-&amp;gt;dmacr |= SSP_DMA_RXDMAEN; }</description>
      <pubDate>Mon, 15 Mar 2021 02:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1245291#M44276</guid>
      <dc:creator>hill_yi</dc:creator>
      <dc:date>2021-03-15T02:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger  a receive terminal count interrupt request</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1246139#M44289</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Junior-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184469" target="_self"&gt;&lt;SPAN class=""&gt;hill_yi,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Junior-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Does it complete DMA transfer when in UART receive processing?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Junior-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Check the register TransferSize of DMA channel control registers .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 07:01:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1246139#M44289</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-03-16T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger  a receive terminal count interrupt request</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1246226#M44291</link>
      <description>&lt;P&gt;Thanks for your answer. For I have already set&amp;nbsp;&lt;SPAN&gt;TransferSize of DMA channel control registers. And it works well when I use dma to send data by ssp or uart(send data correctly and trigger the complete terminal count interrupt)&amp;nbsp;. But when I use ssp or uart to receive data, it&amp;nbsp; can receive data correctly(the data in buffer is right) but can not trigger the&amp;nbsp;&amp;nbsp;complete terminal count interrupt. As the configuration is similar，I&amp;nbsp;wonder if there is something different&amp;nbsp; between sending and reception?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 08:19:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1246226#M44291</guid>
      <dc:creator>hill_yi</dc:creator>
      <dc:date>2021-03-16T08:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to trigger  a receive terminal count interrupt request</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1314746#M45992</link>
      <description>&lt;P&gt;I have the same problem. I set the Uart2 as the source peripheral and SDRAM as the destination. In the meantime, use uart2 as the flow controller. According to what has been specified in the manual of lpc3250, if using a peripheral as the transfer flow controller, the TC interrupt will be triggered when a DMA request is sent. Also, the manual says that UART receive DMA request is sent if the amount of received bytes in the FIFO exceeds the receive FIFO trigger level. Everything seems very clear according to the manual, but in practice it cannot work. So what has to be pay attention to when I try to use a DMA to transfer data frames received of which the length is unknown in prior via UART2, and want to be informed when the transfer is done?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 18:01:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-trigger-a-receive-terminal-count-interrupt-request/m-p/1314746#M45992</guid>
      <dc:creator>ywzhu</dc:creator>
      <dc:date>2021-07-28T18:01:30Z</dc:date>
    </item>
  </channel>
</rss>

