<?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: K64 DAC0 cannot free run  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-DAC0-cannot-free-run/m-p/739741#M45095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Recompile the code with redlib-nohost, it works. It is due to the semihost.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 20:20:37 GMT</pubDate>
    <dc:creator>haizhouli</dc:creator>
    <dc:date>2017-11-02T20:20:37Z</dc:date>
    <item>
      <title>K64 DAC0 cannot free run</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-DAC0-cannot-free-run/m-p/739739#M45093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used FRDM-K64F built-in example to test the DAC0. I only need change the voltage from time to time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the example in the Jtag debug way and push F8, DAC0 can send&amp;nbsp;a correct voltage output. &amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I power cycle the dev board, there is no output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried to turn on the soft trigger mode by set the C0.DACTRGSEL to high and write data into the DACx_DAT. still no output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the right register config to drive a very simple voltage output?&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;I modified the code as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;#define DEMO_DAC_BASEADDR DAC0&lt;/P&gt;&lt;P&gt;dac_config_t dacConfigStruct;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOARD_InitPins();&lt;BR /&gt; BOARD_BootClockRUN();&lt;BR /&gt; BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;PRINTF("\r\nDAC basic Example.\r\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DAC_GetDefaultConfig(&amp;amp;dacConfigStruct);&lt;BR /&gt; DAC_Init(DEMO_DAC_BASEADDR, &amp;amp;dacConfigStruct);&lt;/P&gt;&lt;P&gt;DAC_Enable(DEMO_DAC_BASEADDR, true); /* Enable output. */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; DAC_SetBufferValue(DEMO_DAC_BASEADDR, 0U, 3000);&lt;/P&gt;&lt;P&gt;while(1);&lt;/P&gt;&lt;P&gt;////////////////////////////////////////////////////////////&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:59:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-DAC0-cannot-free-run/m-p/739739#M45093</guid>
      <dc:creator>haizhouli</dc:creator>
      <dc:date>2017-11-01T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: K64 DAC0 cannot free run</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-DAC0-cannot-free-run/m-p/739740#M45094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi HAIZHOU,&lt;/P&gt;&lt;P&gt;Test the dac basic example on FRDM-K64F board with onboard &lt;A href="https://www.segger.com/downloads/jlink/OpenSDA_FRDM-K64F"&gt;J-Link firmware application&lt;/A&gt;, the Pin11 of J4 will output 2.38V.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="DAC SDK2.x.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16220i66E3F6C3C6A97EB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="DAC SDK2.x.png" alt="DAC SDK2.x.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;C:\SDK_2.2_FRDM-K64F\boards\frdmk64f\driver_examples\dac\basic&lt;/P&gt;&lt;P&gt;You can download SDK_2.2_FRDM-K64F from &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I am using KDS3.2 with FRDM-K64F Rev E3 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Thu, 02 Nov 2017 01:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-DAC0-cannot-free-run/m-p/739740#M45094</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2017-11-02T01:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: K64 DAC0 cannot free run</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-DAC0-cannot-free-run/m-p/739741#M45095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Recompile the code with redlib-nohost, it works. It is due to the semihost.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 20:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64-DAC0-cannot-free-run/m-p/739741#M45095</guid>
      <dc:creator>haizhouli</dc:creator>
      <dc:date>2017-11-02T20:20:37Z</dc:date>
    </item>
  </channel>
</rss>

