<?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: DMA does not work properly with LPC4088 (QSB)</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-does-not-work-properly-with-LPC4088-QSB/m-p/1007467#M39526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry for the late reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to replicate your issue in my LPC4088 QSB. I used the software provided by Embedded Artist. You can download it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.embeddedartists.com/wp-content/uploads/2018/06/lpcopen_2_10_lpcxpresso_arm_university_4088qsb.zip"&gt;https://www.embeddedartists.com/wp-content/uploads/2018/06/lpcopen_2_10_lpcxpresso_arm_university_4088qsb.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the sample rate to 16 KHz and modified the ADC example to use the DAC to output the DMA value. My output when using 1 KHz input signal is the following.&lt;/P&gt;&lt;P&gt;&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/99649iF7FA39692333E1AF/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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, I get a pretty similar signal to my input. If you see something I am missing in order to replicate this issue please let me know. Also if you need the code I used to test this please let me know and I can send it to your email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Dec 2019 22:35:11 GMT</pubDate>
    <dc:creator>FelipeGarcia</dc:creator>
    <dc:date>2019-12-27T22:35:11Z</dc:date>
    <item>
      <title>DMA does not work properly with LPC4088 (QSB)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-does-not-work-properly-with-LPC4088-QSB/m-p/1007466#M39525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC4088 QSB is used.&lt;/P&gt;&lt;P&gt;I want to acquire 128 samples each using DMA at a sampling rate of 16kHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two problems now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 1:&lt;/P&gt;&lt;P&gt;1kHz analog input is A / D converted and acquired by DMA.A clean waveform can be obtained when the ADC rate is set to 400 kHz, but if the rate is set to 1 kHz, the waveform will be very noisy.&lt;/P&gt;&lt;P&gt;This does not happen when polling and interrupts are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem 2:&lt;/P&gt;&lt;P&gt;When the DMA transfer size is set to 1 and 128, etc., the waveform obtained by DMA is different even if the same analog waveform is input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(D / C conversion and seeing waveform with oscilloscope)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code uses periph_adc of the following sample code.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc40xx:LPCOPEN-SOFTWARE-FOR-LPC40XX"&gt;https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc40xx:LPCOPEN-SOFTWARE-FOR-LPC40XX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;lpc4088 qsb&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;‌&amp;nbsp;&lt;/SPAN&gt;lpcxpresso lpc4088&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 09:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-does-not-work-properly-with-LPC4088-QSB/m-p/1007466#M39525</guid>
      <dc:creator>shogo_matsubara</dc:creator>
      <dc:date>2019-12-20T09:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: DMA does not work properly with LPC4088 (QSB)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-does-not-work-properly-with-LPC4088-QSB/m-p/1007467#M39526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry for the late reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to replicate your issue in my LPC4088 QSB. I used the software provided by Embedded Artist. You can download it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.embeddedartists.com/wp-content/uploads/2018/06/lpcopen_2_10_lpcxpresso_arm_university_4088qsb.zip"&gt;https://www.embeddedartists.com/wp-content/uploads/2018/06/lpcopen_2_10_lpcxpresso_arm_university_4088qsb.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the sample rate to 16 KHz and modified the ADC example to use the DAC to output the DMA value. My output when using 1 KHz input signal is the following.&lt;/P&gt;&lt;P&gt;&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/99649iF7FA39692333E1AF/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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, I get a pretty similar signal to my input. If you see something I am missing in order to replicate this issue please let me know. Also if you need the code I used to test this please let me know and I can send it to your email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2019 22:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-does-not-work-properly-with-LPC4088-QSB/m-p/1007467#M39526</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-12-27T22:35:11Z</dc:date>
    </item>
  </channel>
</rss>

