<?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: I2C Master Example Code With MCP4725 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371713#M12799</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;its my mistake i assumed it is working but it is still not working ,&lt;BR /&gt;PFA :&lt;BR /&gt;I2C Configuration :&lt;BR /&gt;lpi2c_master_user_config_t lpi2c1_MasterConfig0 = {&lt;BR /&gt;.slaveAddress = 98U,&lt;BR /&gt;.is10bitAddr = false,&lt;BR /&gt;.operatingMode = LPI2C_STANDARD_MODE,&lt;BR /&gt;.baudRate = 100000U,&lt;BR /&gt;.transferType = LPI2C_USING_INTERRUPTS,&lt;BR /&gt;.dmaChannel = 0U,&lt;BR /&gt;.masterCallback = NULL,&lt;BR /&gt;.callbackParam = NULL,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.c file :&lt;BR /&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;LPI2C_DRV_MasterInit(INST_LPI2C1, &amp;amp;lpi2c1_MasterConfig0, &amp;amp;lpi2c1MasterState);&lt;/P&gt;&lt;P&gt;status_t status;&lt;BR /&gt;//status = setVoltage(4095);&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;status = setVoltage(10);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;it is not able to set the voltage.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 07:02:05 GMT</pubDate>
    <dc:creator>rohit_alate</dc:creator>
    <dc:date>2021-11-16T07:02:05Z</dc:date>
    <item>
      <title>I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371042#M12773</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;I am trying to interface the MCP4725 Module with my S32K148_EVAL Board .for that I am using the ref for the I2C Master Example Code, in the configuration I updated the Device address for the DAC Module 0x60 but it is not able to send the data on the BUS,&lt;BR /&gt;&lt;BR /&gt;Can anyone help me out here with what I am missing here?&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance,&lt;BR /&gt;Rohit&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 04:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371042#M12773</guid>
      <dc:creator>rohit_alate</dc:creator>
      <dc:date>2021-11-15T04:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371359#M12789</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;could you please share the connection you have? Do you have pull-ups on I2C lines?&lt;BR /&gt;Do you have any scope/analyzer screen of generated frames? Or nothing is seen?&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 13:30:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371359#M12789</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-11-15T13:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371633#M12794</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I am able to connect the NXPS32K148-EVAL board with MCP4725(12 bit DAC Module).and i am getting analog data as per my inputs.&lt;BR /&gt;&lt;BR /&gt;But the same thing when i try in a loop then it is not giving the analog values based on the input values,&lt;BR /&gt;&lt;BR /&gt;Code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void setVoltage(uint16_t output)&lt;/STRONG&gt;&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;uint8_t packet[3];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;packet[0] = MCP4725_CMD_WRITEDAC;&lt;BR /&gt;packet[1] = output / 16; // Upper data bits (D11.D10.D9.D8.D7.D6.D5.D4)&lt;BR /&gt;packet[2] = (output % 16) &amp;lt;&amp;lt; 4; // Lower data bits (D3.D2.D1.D0.x.x.x.x)&lt;/P&gt;&lt;P&gt;/* Send a packet of data to the bus slave */&lt;BR /&gt;LPI2C_DRV_MasterSendDataBlocking(INST_LPI2C1, packet, 3, true, OSIF_WAIT_FOREVER);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void delay(int value)&lt;BR /&gt;{&lt;BR /&gt;while(value--)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;for (int i = 0 ; i &amp;lt; 4096 ; i++)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;setVoltage(1000);&lt;BR /&gt;delay(100000);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;......&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it will be really helpful if you help me in this,&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rohit&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 04:39:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371633#M12794</guid>
      <dc:creator>rohit_alate</dc:creator>
      <dc:date>2021-11-16T04:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371713#M12799</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;its my mistake i assumed it is working but it is still not working ,&lt;BR /&gt;PFA :&lt;BR /&gt;I2C Configuration :&lt;BR /&gt;lpi2c_master_user_config_t lpi2c1_MasterConfig0 = {&lt;BR /&gt;.slaveAddress = 98U,&lt;BR /&gt;.is10bitAddr = false,&lt;BR /&gt;.operatingMode = LPI2C_STANDARD_MODE,&lt;BR /&gt;.baudRate = 100000U,&lt;BR /&gt;.transferType = LPI2C_USING_INTERRUPTS,&lt;BR /&gt;.dmaChannel = 0U,&lt;BR /&gt;.masterCallback = NULL,&lt;BR /&gt;.callbackParam = NULL,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main.c file :&lt;BR /&gt;main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;LPI2C_DRV_MasterInit(INST_LPI2C1, &amp;amp;lpi2c1_MasterConfig0, &amp;amp;lpi2c1MasterState);&lt;/P&gt;&lt;P&gt;status_t status;&lt;BR /&gt;//status = setVoltage(4095);&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;status = setVoltage(10);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;it is not able to set the voltage.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 07:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371713#M12799</guid>
      <dc:creator>rohit_alate</dc:creator>
      <dc:date>2021-11-16T07:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371918#M12804</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;please share what is outputted on I2C lines. Does it correspond to the slave device protocol?&lt;BR /&gt;What is the value of&amp;nbsp;&lt;SPAN&gt;MCP4725_CMD_WRITEDAC?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 10:02:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371918#M12804</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-11-16T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371927#M12805</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The Values :&lt;BR /&gt;&lt;BR /&gt;#define MCP4725_I2CADDR_DEFAULT (0x62) ///&amp;lt; Default i2c address&lt;BR /&gt;#define MCP4725_CMD_WRITEDAC (0x40) ///&amp;lt; Writes data to the DAC&lt;BR /&gt;#define MCP4725_CMD_WRITEDACEEPROM (0x60) ///&amp;lt; Writes data to the DAC and the EEPROM (persisting the assigned value after reset)&lt;BR /&gt;&lt;BR /&gt;and on pin it is giving the constant 2.57 v as DAC Output to any input Value.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 10:09:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1371927#M12805</guid>
      <dc:creator>rohit_alate</dc:creator>
      <dc:date>2021-11-16T10:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372001#M12808</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;does the DAC acknowledge any byte? You configured slave address 0x62 so you have A0 pin tied to VDD, it that right? Do you really have device with A2:A1 addresses 0:0. As per datasheet this is default factory config, but can be also different, see package marking information.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 12:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372001#M12808</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2021-11-16T12:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372392#M12820</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;yes, the address of the slave device is 0x60 I updated that one with fast mode configuration,&lt;BR /&gt;but still, it is not able to generate the analog signal,&lt;BR /&gt;&lt;BR /&gt;I try to check the DAC module with interfacing with Arduino board and it is working fine with the same logic and all but at NXP side what I am missing not able to get,&lt;/P&gt;&lt;P&gt;PFA for the Zip of the project,&lt;/P&gt;&lt;P&gt;thanks for your quick responses,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rohit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 04:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372392#M12820</guid>
      <dc:creator>rohit_alate</dc:creator>
      <dc:date>2021-11-17T04:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372695#M12826</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;NXP -&amp;gt; MCP4725&lt;BR /&gt;PTE1 -&amp;gt; SCL&lt;/P&gt;&lt;P&gt;PTC31 -&amp;gt;SDA&lt;/P&gt;&lt;P&gt;J3-13(V5_0) -&amp;gt; VCC&lt;/P&gt;&lt;P&gt;J3-16(GND)-&amp;gt;GND&lt;/P&gt;&lt;P&gt;From MCP4725&lt;/P&gt;&lt;P&gt;Out --&amp;gt; +ve &lt;SPAN&gt;scope&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Gnd -&amp;gt; -ve &lt;SPAN&gt;scope&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;No Pullups on I2C Line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG-20211117-WA0000.jpg" style="width: 225px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162411i05E8B63421D0DE65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG-20211117-WA0000.jpg" alt="IMG-20211117-WA0000.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG-20211117-WA0001.jpg" style="width: 225px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162410iEFB9781BB95A62A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG-20211117-WA0001.jpg" alt="IMG-20211117-WA0001.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG-20211117-WA0002.jpg" style="width: 225px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162409i72CA9754FB67A37B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG-20211117-WA0002.jpg" alt="IMG-20211117-WA0002.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 10:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372695#M12826</guid>
      <dc:creator>rohit_alate</dc:creator>
      <dc:date>2021-11-17T10:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Master Example Code With MCP4725</title>
      <link>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372728#M12827</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I am able to get the Analog data on the scope now, so DAC Interfacing is done.&lt;BR /&gt;But a new issue that I am facing is like when I created a different test project and configure the i2c then it will be working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I have one existing project in that I need to add this so when I am adding the i2c module and the same logic to update the DAC it is going into the Default ISR,&lt;/P&gt;&lt;P&gt;so what could be the reason so I can check on that?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 11:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-Master-Example-Code-With-MCP4725/m-p/1372728#M12827</guid>
      <dc:creator>rohit_alate</dc:creator>
      <dc:date>2021-11-17T11:44:05Z</dc:date>
    </item>
  </channel>
</rss>

