<?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 NHS3152 DAC range in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-DAC-range/m-p/1563589#M16039</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using an NHS3152 board along with its LPC-Link2 board.&lt;/P&gt;&lt;P&gt;What is the equation translating the "native" DAC value into an actual voltage?&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;/P&gt;&lt;P&gt;/*fonction pour initialiser le DAC */&lt;BR /&gt;static void Init_DAC(void)&lt;BR /&gt;{&lt;BR /&gt;Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_ANA0_1, IOCON_FUNC_1); /*utilise le GPO analogique ANA0_1 comme sortie du DAC */&lt;BR /&gt;Chip_ADCDAC_Init(NSS_ADCDAC0);&lt;BR /&gt;Chip_ADCDAC_SetMuxDAC(NSS_ADCDAC0, ADCDAC_IO_ANA0_1); /* connecte le DAC à la sortie ANA0_1*/&lt;BR /&gt;Chip_ADCDAC_SetModeDAC(NSS_ADCDAC0, ADCDAC_CONTINUOUS);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;Board_Init();&lt;/P&gt;&lt;P&gt;Chip_Clock_System_BusyWait_ms(1000);&lt;BR /&gt;Init_DAC();&lt;BR /&gt;Chip_ADCDAC_WriteOutputDAC(NSS_ADCDAC0,4000);&lt;BR /&gt;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Measuring using a voltmeter between ground and ANA0_1, I get the corresponding values&lt;/P&gt;&lt;P&gt;1000 -&amp;gt; 0.6V&lt;/P&gt;&lt;P&gt;1500 -&amp;gt; 0.77V&lt;/P&gt;&lt;P&gt;2000 -&amp;gt; 0.94V&lt;/P&gt;&lt;P&gt;4000 -&amp;gt;1.58&lt;/P&gt;&lt;P&gt;&amp;nbsp;1000 and 4000 are the min and max values I can put in Chip_ADCDAC_WriteOutputDAC(NSS_ADCDAC0,value), it seems (lower values than 1000, the voltage remains at 0.6V, higher values than 4000 the voltage remaisn at 1.58V).&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 15:27:14 GMT</pubDate>
    <dc:creator>CyrilBZH</dc:creator>
    <dc:date>2022-12-02T15:27:14Z</dc:date>
    <item>
      <title>NHS3152 DAC range</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-DAC-range/m-p/1563589#M16039</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using an NHS3152 board along with its LPC-Link2 board.&lt;/P&gt;&lt;P&gt;What is the equation translating the "native" DAC value into an actual voltage?&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;/P&gt;&lt;P&gt;/*fonction pour initialiser le DAC */&lt;BR /&gt;static void Init_DAC(void)&lt;BR /&gt;{&lt;BR /&gt;Chip_IOCON_SetPinConfig(NSS_IOCON, IOCON_ANA0_1, IOCON_FUNC_1); /*utilise le GPO analogique ANA0_1 comme sortie du DAC */&lt;BR /&gt;Chip_ADCDAC_Init(NSS_ADCDAC0);&lt;BR /&gt;Chip_ADCDAC_SetMuxDAC(NSS_ADCDAC0, ADCDAC_IO_ANA0_1); /* connecte le DAC à la sortie ANA0_1*/&lt;BR /&gt;Chip_ADCDAC_SetModeDAC(NSS_ADCDAC0, ADCDAC_CONTINUOUS);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;Board_Init();&lt;/P&gt;&lt;P&gt;Chip_Clock_System_BusyWait_ms(1000);&lt;BR /&gt;Init_DAC();&lt;BR /&gt;Chip_ADCDAC_WriteOutputDAC(NSS_ADCDAC0,4000);&lt;BR /&gt;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Measuring using a voltmeter between ground and ANA0_1, I get the corresponding values&lt;/P&gt;&lt;P&gt;1000 -&amp;gt; 0.6V&lt;/P&gt;&lt;P&gt;1500 -&amp;gt; 0.77V&lt;/P&gt;&lt;P&gt;2000 -&amp;gt; 0.94V&lt;/P&gt;&lt;P&gt;4000 -&amp;gt;1.58&lt;/P&gt;&lt;P&gt;&amp;nbsp;1000 and 4000 are the min and max values I can put in Chip_ADCDAC_WriteOutputDAC(NSS_ADCDAC0,value), it seems (lower values than 1000, the voltage remains at 0.6V, higher values than 4000 the voltage remaisn at 1.58V).&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 15:27:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-DAC-range/m-p/1563589#M16039</guid>
      <dc:creator>CyrilBZH</dc:creator>
      <dc:date>2022-12-02T15:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 DAC range</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-DAC-range/m-p/1565130#M16063</link>
      <description>&lt;P&gt;Hi Cyril,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DAC transfer curve has an gain/offset shift causing the zero value not outputting 0 Volt and an early flattening at the high end (native&amp;gt;3800).&lt;/P&gt;
&lt;P&gt;Use Vout(V) = (native/2881)V + 0.262V for native[0..3800]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have an explanation for the 0.6V lowest output voltage.&lt;/P&gt;
&lt;P&gt;Check if the output load is not too capacitive (&amp;lt;250pF), possibly causing oscillation.&lt;/P&gt;
&lt;P&gt;Minimum resistive load is 1kOhm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 10:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-DAC-range/m-p/1565130#M16063</guid>
      <dc:creator>patrickgeens</dc:creator>
      <dc:date>2022-12-06T10:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 DAC range</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-DAC-range/m-p/1568861#M16097</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;Thanks for this answer, i'll investigate the lower ranger later. My board has no load yet.&lt;/P&gt;&lt;P&gt;Best reagards&lt;/P&gt;&lt;P&gt;Cyril&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 08:14:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-DAC-range/m-p/1568861#M16097</guid>
      <dc:creator>CyrilBZH</dc:creator>
      <dc:date>2022-12-13T08:14:19Z</dc:date>
    </item>
  </channel>
</rss>

