<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Control a Microchip MCP4724 DAC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100475/control-a-microchip-mcp4724-dac</link><description>Dear All, 
 I&amp;#39;m interfacing an MCP4725 dac from Microchip to an nRF52832 in a custom board but I can&amp;#39;t enable the MCP4725 DAC driver in Kconfig. 
 What are the steps required for integrating this device correctly and for enabling its driver? 
 What I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jun 2023 09:19:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100475/control-a-microchip-mcp4724-dac" /><item><title>RE: Control a Microchip MCP4724 DAC</title><link>https://devzone.nordicsemi.com/thread/432473?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 09:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a085affd-632f-4e3d-9a76-79500293f330</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Relating to this subject, see a working solution in: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100577/how-to-interface-with-an-mcp4725-on-a-custom-board-based-on-the-nrf52832-soc"&gt;devzone.nordicsemi.com/.../how-to-interface-with-an-mcp4725-on-a-custom-board-based-on-the-nrf52832-soc&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100577/how-to-interface-with-an-mcp4725-on-a-custom-board-based-on-the-nrf52832-soc"&gt;.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control a Microchip MCP4724 DAC</title><link>https://devzone.nordicsemi.com/thread/429808?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 13:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b075b522-e1a4-43e8-b895-d81d40b008fb</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;At the end, for no apparent reason, the error disappeared after I restarted VSC, made the n-th pristine build, and restarted VSC and made another pristine build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control a Microchip MCP4724 DAC</title><link>https://devzone.nordicsemi.com/thread/429589?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2023 13:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1057e6e9-f593-4cc4-8816-1bab48d0811c</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Any thoughts about this?&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control a Microchip MCP4724 DAC</title><link>https://devzone.nordicsemi.com/thread/429324?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 13:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2566ad6e-093f-4d8e-a840-c7aeb02df2b4</guid><dc:creator>V.Lorz</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Only devices I have enabled are i2c0, gpio and adc.&lt;/p&gt;
&lt;p&gt;Just to make sure the hardware is working OK, I included this code:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;{&lt;/code&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;&amp;nbsp; static const struct i2c_dt_spec i2c_dev = I2C_DT_SPEC_GET(I2C_NODE);&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; if (!device_is_ready(i2c_dev.bus))&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;  {&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp; printk(&amp;quot;I2C bus %s is not ready!\n\r&amp;quot;, i2c_dev.bus-&amp;gt;name);&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &amp;nbsp;  return false;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;  }&lt;/code&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;&amp;nbsp; uint8_t buf[5];&lt;/code&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;&amp;nbsp;  memset(&amp;amp;buf, 0, sizeof(buf));&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;  i2c_read_dt(&amp;amp;i2c_dev, buf, 2);&lt;/code&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;}&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And the CPU outputs the i2c signals as expected, and the MCP4725 does not ack the read, just as, I think, expected.&lt;/p&gt;
&lt;p&gt;This is what I have in my .prj (last line is highlighted as error, and says: CONFIG_DAC_MCP4725 was assigned the value y, but got the value n. Missing dependencies:&lt;br /&gt;DT_HAS_MICROCHIP_MCP4725_ENABLED)&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;code&gt;CONFIG_GPIO=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_NFCT_PINS_AS_GPIOS=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_I2C=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_PINCTRL=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_DAC=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt;CONFIG_DAC_MCP4725=y&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control a Microchip MCP4724 DAC</title><link>https://devzone.nordicsemi.com/thread/429293?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 12:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c90944d3-e6c3-4aaf-913b-19d129375932</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please make sure that spi0 is disabled, as both i2c0 and spi0 can not be enabled at the same time.&lt;/p&gt;
&lt;p&gt;Could I please see your prj.conf? Make sure that you have all of these configs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_I2C=y
CONFIG_DAC=y
CONFIG_DAC_MCP4725=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Are you using uart0? In the DK board files uart0 uses P0.06 and P0.07 by default, so if you are using uart0 make sure that you have changed these pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>