<?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>topic Best way to check amount data received through the DMA in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Best-way-to-check-amount-data-received-through-the-DMA/m-p/582091#M20596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by philw4321 on Mon Feb 02 14:26:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the DMA to receive data from the USUART port. I am trying to figure out the best way to check the amount (number bytes) of data I actually received at the end of the time out period. I do use the DMA interrupt to indicate when a fixed amount of data has been received, the length I request is sometimes larger than the amount of data actually received. The data is real just less than the requested amount from the DMA. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am looking to figure out how much data I did receive when I do not get an interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I there a mechanism to check the DMA pnt position? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For reference I am using FreeRTOS with task notification for the time out and this is the setup of the DMA transfer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TransferStaus = Chip_GPDMA_Transfer(LPC_GPDMA,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dmaChannelNumRx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_GPDMA_CONN_UART2_Rx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;pucRxData[0],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GPDMA_TRANSFERTYPE_P2M_CONTROLLER_DMA,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(uint32_t) uiRxLength);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:08:22 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:08:22Z</dc:date>
    <item>
      <title>Best way to check amount data received through the DMA</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Best-way-to-check-amount-data-received-through-the-DMA/m-p/582091#M20596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by philw4321 on Mon Feb 02 14:26:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the DMA to receive data from the USUART port. I am trying to figure out the best way to check the amount (number bytes) of data I actually received at the end of the time out period. I do use the DMA interrupt to indicate when a fixed amount of data has been received, the length I request is sometimes larger than the amount of data actually received. The data is real just less than the requested amount from the DMA. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am looking to figure out how much data I did receive when I do not get an interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I there a mechanism to check the DMA pnt position? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For reference I am using FreeRTOS with task notification for the time out and this is the setup of the DMA transfer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TransferStaus = Chip_GPDMA_Transfer(LPC_GPDMA,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dmaChannelNumRx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_GPDMA_CONN_UART2_Rx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;pucRxData[0],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GPDMA_TRANSFERTYPE_P2M_CONTROLLER_DMA,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(uint32_t) uiRxLength);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:08:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Best-way-to-check-amount-data-received-through-the-DMA/m-p/582091#M20596</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:08:22Z</dc:date>
    </item>
  </channel>
</rss>

