<?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:  how to control a pca9685 with the frdmkl46z through the internal i2c component in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856883#M51366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traducción" dir="ltr" style="color: #212121; background-color: #ffffff; border: none; font-size: 16px !important; padding: 0px 0.14em 0px 0px;"&gt;&lt;SPAN lang="en"&gt;thanks for your answer, I read the datasheet, it is a controller for servomotors, you can control up to 16 servomotors, but I do not understand how to select the address from kds of each output of pwm of the 16 available?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2019 18:10:41 GMT</pubDate>
    <dc:creator>judis_148</dc:creator>
    <dc:date>2019-03-27T18:10:41Z</dc:date>
    <item>
      <title>how to control a pca9685 with the frdmkl46z through the internal i2c component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856881#M51364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;WAIT1_Waitms(5);&lt;BR /&gt; fruit_SelectSlave(0x00);&lt;BR /&gt; fruit_SendChar(0x06);&lt;BR /&gt; WAIT1_Waitms(5);&lt;BR /&gt; fruit_SelectSlave(0x40);&lt;BR /&gt; dato[0]=0xFE;&lt;BR /&gt; dato[1]=110;&lt;BR /&gt; fruit_SendBlock(&amp;amp;dato,2,&amp;amp;ret);&lt;BR /&gt; WAIT1_Waitms(5);&lt;BR /&gt; dato[0]=0x00;&lt;BR /&gt; dato[1]=0x21;&lt;BR /&gt; fruit_SendBlock(&amp;amp;dato,2,&amp;amp;ret);&lt;BR /&gt; WAIT1_Waitms(5);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 05:30:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856881#M51364</guid>
      <dc:creator>judis_148</dc:creator>
      <dc:date>2019-03-27T05:30:54Z</dc:date>
    </item>
    <item>
      <title>Re:  how to control a pca9685 with the frdmkl46z through the internal i2c component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856882#M51365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="337569" data-username="judis_148@hotmail.com" href="https://community.nxp.com/people/judis_148@hotmail.com"&gt;Sharom Tovar&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From the NXP side, we provide the i2c driver code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; The I2C driver you can find it from the SDK:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you want to communicate with your pca9685 slave, you need to read the pca9685 datasheet, what the control command and data it needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then send the according data to the slave, if it still can't work, you can use the Logcal analyzer tool to check the I2C bus wave, whether the data is meet your slave demand.&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is the normal thought for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 11:07:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856882#M51365</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-03-27T11:07:04Z</dc:date>
    </item>
    <item>
      <title>Re:  how to control a pca9685 with the frdmkl46z through the internal i2c component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856883#M51366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traducción" dir="ltr" style="color: #212121; background-color: #ffffff; border: none; font-size: 16px !important; padding: 0px 0.14em 0px 0px;"&gt;&lt;SPAN lang="en"&gt;thanks for your answer, I read the datasheet, it is a controller for servomotors, you can control up to 16 servomotors, but I do not understand how to select the address from kds of each output of pwm of the 16 available?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 18:10:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856883#M51366</guid>
      <dc:creator>judis_148</dc:creator>
      <dc:date>2019-03-27T18:10:41Z</dc:date>
    </item>
    <item>
      <title>Re:  how to control a pca9685 with the frdmkl46z through the internal i2c component</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856884#M51367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharom Tovar,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I suggest you use the MCXPresso IDE instead of the KDS.&lt;/P&gt;&lt;P&gt;&amp;nbsp; KDS IDE is the old one, the MCUXresso IDE is the new IDE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; About the I2C code, please refer to the SDK code which I recommend you, about the address, do you mean the slave I2C address?&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can refer to FRDM0KL46 sdk code:&lt;/P&gt;&lt;P&gt;SDK_2.4.1_FRDM-KL46Z\boards\frdmkl46z\driver_examples\i2c\read_accel_value_transfer\iar&lt;/P&gt;&lt;P&gt;&amp;nbsp; This project is using the I2C to communicate with the external acceleration sensor.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can put the i2c slave address in masterXfer.slaveAddress;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;You can try it, and check the I2C bus data.&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 07:19:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/how-to-control-a-pca9685-with-the-frdmkl46z-through-the-internal/m-p/856884#M51367</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-03-28T07:19:27Z</dc:date>
    </item>
  </channel>
</rss>

