<?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: LPC4370 DAC problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-DAC-problem/m-p/585087#M21167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Mon Aug 25 01:12:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: andersrosvall&lt;/STRONG&gt;&lt;BR /&gt;The DAC is not available on the 100-ball chip package that is used on the LPC-Link2 board.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC-Link2 schematics mentions the DAC on Pin 4 of J4, which could make people think it is available (according to the UM it's not).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jürgen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:10:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:10:51Z</dc:date>
    <item>
      <title>LPC4370 DAC problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-DAC-problem/m-p/585085#M21165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mshrestha789 on Wed Aug 20 19:32:12 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello friends,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to implement DAC of LPC4370. I have LPC-link 2 board. I am trying to use EXP_ADC0_DAC for DAC. I have tried some methods but with out any success. Here's DAC part of the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
void dac_init(void){

/*Tri-state the output driver by selecting an input -&amp;gt; added after reading user manual pg 409*/
Chip_SCU_PinMuxSet(4,4,SCU_MODE_FUNC0);
Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT, 2, 4); // set GPIO port direction register
Chip_SCU_PinMuxSet(4,4,SCU_MODE_INACT); // disable pull up and pull down resistor
LPC_SCU-&amp;gt;SFSP[4][4] &amp;amp;= ~(1&amp;lt;&amp;lt;6);//disable receiveing by setting the EZI bit to zero. 

Chip_SCU_DAC_Analog_Config(); //select DAC function
Chip_DAC_Init(LPC_DAC); //initialize DAC
Chip_DAC_SetDMATimeOut(LPC_DAC, 0xFFFF); 
Chip_DAC_ConfigDAConverterControl(LPC_DAC, (DAC_CNT_ENA | DAC_DMA_ENA));
}
void DACTask1(void) {
static uint32_t tmp = 0;
uint32_t i = 0;
while (1) {
tmp++;
if (tmp == DATA_SIZE)) {
tmp = 0;
}
Chip_DAC_UpdateValue(LPC_DAC, sine_wave[tmp]); //update DAC value
while (!(Chip_DAC_GetIntStatus(LPC_DAC))) {}
for(i = 0; i &amp;lt; 10000; i++);
}
}

&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is not working. Did I miss any thing? Please help me regarding this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-DAC-problem/m-p/585085#M21165</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 DAC problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-DAC-problem/m-p/585086#M21166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andersrosvall on Thu Aug 21 07:43:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The DAC is not available on the 100-ball chip package that is used on the LPC-Link2 board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anders @ EA Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-DAC-problem/m-p/585086#M21166</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 DAC problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-DAC-problem/m-p/585087#M21167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Mon Aug 25 01:12:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: andersrosvall&lt;/STRONG&gt;&lt;BR /&gt;The DAC is not available on the 100-ball chip package that is used on the LPC-Link2 board.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC-Link2 schematics mentions the DAC on Pin 4 of J4, which could make people think it is available (according to the UM it's not).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jürgen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:10:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-DAC-problem/m-p/585087#M21167</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:10:51Z</dc:date>
    </item>
  </channel>
</rss>

