<?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>Processor Expert SoftwareのトピックHelp with PWM and DMA.</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Help-with-PWM-and-DMA/m-p/784066#M4157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with DMA. I read a lot of examples and application notes, but I am not able to make my firmware work. I am working with TWR-K64 board and Kinetis KDS v3.2.0 with Processor Expert (no SDK). I would really appreciate your help.&lt;/P&gt;&lt;P&gt;The background is as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Please find attached a hand made simple&amp;nbsp;schematic.&lt;/LI&gt;&lt;LI&gt;There is an external ADC with a parallel digital output, connected to the PORTC of the microcontroller.&lt;/LI&gt;&lt;LI&gt;The ADC gives a conversion in every rising edge of the clock input.&lt;/LI&gt;&lt;LI&gt;Pin PTD5 of the microcontroller is connected to the external ADC clock, and I create a clock signal through the PWM (Please, find attached &lt;EM&gt;PWM.png&lt;/EM&gt;).&lt;/LI&gt;&lt;LI&gt;PTD5 pin is configured as a DMA request in every rising edge (Please, find attached &lt;EM&gt;PTD5 init.png&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;DMA is configured to read the information of PORTC and write it down in an array[]. In this example, DMA is configured to be finished after 8 ADC conversions (Please, find attached &lt;EM&gt;DMA.png&lt;/EM&gt; and &lt;EM&gt;DMA_MUX.png&lt;/EM&gt;).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this beginning, I am working only with the TWR-K64 board without the external ADC (&lt;SPAN style="color: #000000; font-size: 13.3333px; line-height: 23.0667px;"&gt;so&amp;nbsp;&lt;/SPAN&gt;I assume that PORTC always will be zero as the external ADC is not connected). The PTD5 pin and Yellow led are displayed in the oscilloscope.&lt;/P&gt;&lt;P&gt;When tact switch SW3 (from TWR-K64) is pushed, the led turns on and the PWM starts, and both should come off after 8 PWM periods in the event&amp;nbsp; “&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;DMACH1_OnComplete”&lt;/STRONG&gt;&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it does not work. Please find attached the project in case somebody could have a look.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2018 14:58:14 GMT</pubDate>
    <dc:creator>patricio</dc:creator>
    <dc:date>2018-09-20T14:58:14Z</dc:date>
    <item>
      <title>Help with PWM and DMA.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Help-with-PWM-and-DMA/m-p/784066#M4157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with DMA. I read a lot of examples and application notes, but I am not able to make my firmware work. I am working with TWR-K64 board and Kinetis KDS v3.2.0 with Processor Expert (no SDK). I would really appreciate your help.&lt;/P&gt;&lt;P&gt;The background is as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Please find attached a hand made simple&amp;nbsp;schematic.&lt;/LI&gt;&lt;LI&gt;There is an external ADC with a parallel digital output, connected to the PORTC of the microcontroller.&lt;/LI&gt;&lt;LI&gt;The ADC gives a conversion in every rising edge of the clock input.&lt;/LI&gt;&lt;LI&gt;Pin PTD5 of the microcontroller is connected to the external ADC clock, and I create a clock signal through the PWM (Please, find attached &lt;EM&gt;PWM.png&lt;/EM&gt;).&lt;/LI&gt;&lt;LI&gt;PTD5 pin is configured as a DMA request in every rising edge (Please, find attached &lt;EM&gt;PTD5 init.png&lt;/EM&gt;)&lt;/LI&gt;&lt;LI&gt;DMA is configured to read the information of PORTC and write it down in an array[]. In this example, DMA is configured to be finished after 8 ADC conversions (Please, find attached &lt;EM&gt;DMA.png&lt;/EM&gt; and &lt;EM&gt;DMA_MUX.png&lt;/EM&gt;).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this beginning, I am working only with the TWR-K64 board without the external ADC (&lt;SPAN style="color: #000000; font-size: 13.3333px; line-height: 23.0667px;"&gt;so&amp;nbsp;&lt;/SPAN&gt;I assume that PORTC always will be zero as the external ADC is not connected). The PTD5 pin and Yellow led are displayed in the oscilloscope.&lt;/P&gt;&lt;P&gt;When tact switch SW3 (from TWR-K64) is pushed, the led turns on and the PWM starts, and both should come off after 8 PWM periods in the event&amp;nbsp; “&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;DMACH1_OnComplete”&lt;/STRONG&gt;&lt;STRONG style="color: black; font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it does not work. Please find attached the project in case somebody could have a look.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:58:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Help-with-PWM-and-DMA/m-p/784066#M4157</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2018-09-20T14:58:14Z</dc:date>
    </item>
  </channel>
</rss>

