<?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 KL02 DAC configuration in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-DAC-configuration/m-p/492957#M30467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am working with the FRDM-KL02Z and IAR as the Software Development Tool. I would like to generate a signal with a specific amplitude in one available pin of the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, &lt;STRONG&gt;is it possible to configure the DAC in this board (FRDM-KL02Z)?&lt;/STRONG&gt; &lt;STRONG&gt;And generate a signal with a required amplitude in an output pin?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If so, &lt;STRONG&gt;could you guide me to do this?&lt;/STRONG&gt; I have seen many different examples for other MCUs, but not for the KL02Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2016 13:58:52 GMT</pubDate>
    <dc:creator>albt</dc:creator>
    <dc:date>2016-05-02T13:58:52Z</dc:date>
    <item>
      <title>KL02 DAC configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-DAC-configuration/m-p/492957#M30467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am working with the FRDM-KL02Z and IAR as the Software Development Tool. I would like to generate a signal with a specific amplitude in one available pin of the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, &lt;STRONG&gt;is it possible to configure the DAC in this board (FRDM-KL02Z)?&lt;/STRONG&gt; &lt;STRONG&gt;And generate a signal with a required amplitude in an output pin?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If so, &lt;STRONG&gt;could you guide me to do this?&lt;/STRONG&gt; I have seen many different examples for other MCUs, but not for the KL02Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 13:58:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-DAC-configuration/m-p/492957#M30467</guid>
      <dc:creator>albt</dc:creator>
      <dc:date>2016-05-02T13:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 DAC configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-DAC-configuration/m-p/492958#M30468</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;The KL02 doesn't have a DAC. You can however use a PWM output with a filter to do something similar.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerADC.pdf" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerADC.pdf&lt;/A&gt;&lt;SPAN&gt; Appendix A-c, for example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the KL02 also doesn't have DMA so any such signal needs to be generated in software, which makes it a lot less efficience, but it can of course be done.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 14:19:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-DAC-configuration/m-p/492958#M30468</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-05-02T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 DAC configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-DAC-configuration/m-p/492959#M30469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Andres,&lt;/P&gt;&lt;P&gt;I have checked the UM of KL02z, it seems that the Kl02z does not have DAC module. As you know that the CMP module includes a 6 bits DAC, but the DAC can only generate a reference voltage for CMP itself, the CMP internal DAC can not output to the KL02Z pad.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 06:07:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-DAC-configuration/m-p/492959#M30469</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-05-03T06:07:12Z</dc:date>
    </item>
  </channel>
</rss>

