<?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: How to do audio with a DAC? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-do-audio-with-a-DAC/m-p/963249#M55071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the ultimate solution see the uTasker project. It includes off-the-bat signal generation to DAC output using DMA (or to PWM outputs), or USB to DAC. It simulates operation to allow simplest understanding and further development, and the same code runs on any Kinetis processor (with USB / DAC) without needing different libraries and rewriting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL25Z.html&lt;/A&gt; [sine wave generator binary for KL25 at the bottom]&lt;BR /&gt;- USB audio documentation: &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerUSB_Audio.pdf" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerUSB_Audio.pdf&lt;/A&gt;&lt;BR /&gt;- ADC/DAC (with DMA) documentation: &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerADC.pdf" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerADC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;Request Free emergency remote desk-top consulting at &lt;A href="http://www.utasker.com/services.html" target="test_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jun 2019 22:14:04 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2019-06-24T22:14:04Z</dc:date>
    <item>
      <title>How to do audio with a DAC?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-do-audio-with-a-DAC/m-p/963247#M55069</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 working with a FRDM-KL25Z and I need to produce analog audio output from the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone point me in the right direction for how this is typically done on a controller like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done this before on smaller 8-bit processors, but the Arm Core M0+ is quite different, plus I noticed there's DMA. My needs are fairly basic: single channel, 8-16 bit samples, 11-22khz sample rate should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can the DAC (more or less) directly retrieve its values from memory?&lt;/LI&gt;&lt;LI&gt;Callbacks aside, will the DAC with hardware buffer operate asynchronously to the main loop?&lt;/LI&gt;&lt;LI&gt;Can you recommend any good, clear example code or tutorials?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be completely honest, I don't know what I don't know. Just need to be able to produce some basic audio (hopefully) without completely tying up the CPU core.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently working with MCUXpresso SDK, but I'll take any applicable code that I can compile and run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul Swanson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 09:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-do-audio-with-a-DAC/m-p/963247#M55069</guid>
      <dc:creator>q1220200</dc:creator>
      <dc:date>2019-06-24T09:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to do audio with a DAC?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-do-audio-with-a-DAC/m-p/963248#M55070</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;Yes, you can retrieve values from the memory by using DMA with DAC, and also it is possible to have the DAC operating asynchronously to the main loop. I recommend you check the following guide on how to implement audio output for kinetis: &lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN4369.pdf" title="https://www.nxp.com/docs/en/application-note/AN4369.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4369.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ricardo Delsordo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 17:38:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-do-audio-with-a-DAC/m-p/963248#M55070</guid>
      <dc:creator>nxf51211</dc:creator>
      <dc:date>2019-06-24T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to do audio with a DAC?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-do-audio-with-a-DAC/m-p/963249#M55071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the ultimate solution see the uTasker project. It includes off-the-bat signal generation to DAC output using DMA (or to PWM outputs), or USB to DAC. It simulates operation to allow simplest understanding and further development, and the same code runs on any Kinetis processor (with USB / DAC) without needing different libraries and rewriting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KL25Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KL25Z.html&lt;/A&gt; [sine wave generator binary for KL25 at the bottom]&lt;BR /&gt;- USB audio documentation: &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerUSB_Audio.pdf" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerUSB_Audio.pdf&lt;/A&gt;&lt;BR /&gt;- ADC/DAC (with DMA) documentation: &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerADC.pdf" target="test_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerADC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Complete Kinetis solutions for professional needs, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080;"&gt;&lt;EM&gt;uTasker: supporting &amp;gt;1'000 registered Kinetis users get products faster and cheaper to market&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;Request Free emergency remote desk-top consulting at &lt;A href="http://www.utasker.com/services.html" target="test_blank"&gt;http://www.utasker.com/services.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Open Source version at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="test_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 22:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-do-audio-with-a-DAC/m-p/963249#M55071</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-06-24T22:14:04Z</dc:date>
    </item>
  </channel>
</rss>

