<?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 Re: PIT trigger the DMA and the DMA transfer data to the DAC doesn't work in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355630#M17738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share the project with PIT trigger based ADC Conversion using DMA Peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@dhruv &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 12:01:15 GMT</pubDate>
    <dc:creator>dhruvonline</dc:creator>
    <dc:date>2015-09-08T12:01:15Z</dc:date>
    <item>
      <title>PIT trigger the DMA and the DMA transfer data to the DAC doesn't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355625#M17733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new here and with the MKL16 µC.&lt;/P&gt;&lt;P&gt;My aim is to use the PIT to trigger the DMA and the DMA should transfer Data out of RAM to the DAC.&lt;/P&gt;&lt;P&gt;My application uses a sine wave table (array) with 16 entries to generate a sound with the DAC.&lt;/P&gt;&lt;P&gt;The PIT is used to generate different frequencies for output to the DAC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PIT works, but the DMA takes only the first word of the sine wave and than it finished.&lt;/P&gt;&lt;P&gt;I have taken the configuration for the DMA and DMAMUX from the KL16 manual.&lt;/P&gt;&lt;P&gt;I use the PIT ch.1 --&amp;gt; DMA ch.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone here realized a project like this and can help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone needs my code i will publish it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 10:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355625#M17733</guid>
      <dc:creator>stefanbrehm</dc:creator>
      <dc:date>2015-01-19T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: PIT trigger the DMA and the DMA transfer data to the DAC doesn't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355626#M17734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you can find a simple CodeWarrior 10.6 project that demonstrates the use of the PIT to Trigger DMA transfers to the DAC output register using the FRDM-KL05:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This application demonstrates the use of the Periodic trigger of the DMA triggered by the PIT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Philosophy:&lt;/STRONG&gt; The DMA is periodically triggered by the PIT, the source address of the DMA is a buffer that contains a Sinus waveform and the destination address is the DAC0_DAT0L. The Data to the DAC is transferred when the DMA is triggered. The resultant signal is present in the DAC0_OUT. PTB1 for the FRDM-KL05&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the example for more information.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 16:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355626#M17734</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-01-20T16:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: PIT trigger the DMA and the DMA transfer data to the DAC doesn't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355627#M17735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for the example. &lt;/P&gt;&lt;P&gt;The source code is what i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 08:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355627#M17735</guid>
      <dc:creator>stefanbrehm</dc:creator>
      <dc:date>2015-01-21T08:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: PIT trigger the DMA and the DMA transfer data to the DAC doesn't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355628#M17736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code works, but I have a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems, that if the PIT is to fast (max. frequency 4kHz in my application ) I get a Configuration Error (DMA_DSR_BCRn --&amp;gt; CE ).&lt;/P&gt;&lt;P&gt;I think the reason for this error is, that the BCR equals 0 when the DMA receives a start condition from the PIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the following workaround to fix this problem:&lt;/P&gt;&lt;P&gt;--&amp;gt; Set BCR to a big value (e.g. maximum) in the INIT-function and reload the BCR with this value for example every 100ms.&lt;/P&gt;&lt;P&gt;--&amp;gt; With this workaround the BCR will not become 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you another idea to fix this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another idea to use the PIT, DMA and the DAC is, that the PIT use the hardware trigger from the DAC and the DAC make a DMA request to reload the DAC.&lt;/P&gt;&lt;P&gt;Have you an example for this use case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 08:54:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355628#M17736</guid>
      <dc:creator>stefanbrehm</dc:creator>
      <dc:date>2015-01-23T08:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: PIT trigger the DMA and the DMA transfer data to the DAC doesn't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355629#M17737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well I had never had that problem, probably because I did not test that frequencies. The BCR will give you a configuration error if the value becomes 0 because when the start condition occurs the number of bytes of the block cannot be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your application runs normally with that workaround you will not have future problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have an application like that, but, please check this post that has an application for the KL25 device that uses the PIT to start the ADC conversion and when the conversion is complete the ADC triggers a transfer of the DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-102951"&gt;PIT- ADC- DMA Example for FRDM-KL25z, FRDM-K64F, TWR-K60D100 and TWR-K70&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 15:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355629#M17737</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-01-23T15:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: PIT trigger the DMA and the DMA transfer data to the DAC doesn't work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355630#M17738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share the project with PIT trigger based ADC Conversion using DMA Peripheral.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@dhruv &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 12:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/PIT-trigger-the-DMA-and-the-DMA-transfer-data-to-the-DAC-doesn-t/m-p/355630#M17738</guid>
      <dc:creator>dhruvonline</dc:creator>
      <dc:date>2015-09-08T12:01:15Z</dc:date>
    </item>
  </channel>
</rss>

