<?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>Other NXP ProductsのトピックRe: Nxp PCA9685 PWM LED controller register read write problem</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063808#M8963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to add some delay between your write and read functions. As you can see in Table 15 of the datasheet, the Tbuf time is min. 4.7 us in the Standard mode, while in your case it seems to be 2.5 us only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Dyn Char.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116289i681C9EB50012B896/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dyn Char.JPG" alt="Dyn Char.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2020-07-20_9-08-35.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116290i667C540EED52EFEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-07-20_9-08-35.png" alt="2020-07-20_9-08-35.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2020 07:20:20 GMT</pubDate>
    <dc:creator>TomasVaverka</dc:creator>
    <dc:date>2020-07-20T07:20:20Z</dc:date>
    <item>
      <title>Nxp PCA9685 PWM LED controller register read write problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063807#M8962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Dear Roland,&lt;BR /&gt;We want to use PCA9685 to generate PWM signal for control. The PCA9685 is driven by a Renessas MCU. We try to write/read the MODE1 register by using following driver code. However, we find that the read register always return 0xFF. Below is screen capture and attached please find the logic analyzer data. Please comment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; PCA9685_write_byte(PCA9685_MODE1_REG, 0x01);&lt;BR /&gt;&lt;BR /&gt; MSB = PCA9685_read_byte(PCA9685_MODE1_REG);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LogicScreenCapture.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116250i8D3A6DB853A398BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="LogicScreenCapture.png" alt="LogicScreenCapture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 02:54:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063807#M8962</guid>
      <dc:creator>pylin</dc:creator>
      <dc:date>2020-07-20T02:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Nxp PCA9685 PWM LED controller register read write problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063808#M8963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to add some delay between your write and read functions. As you can see in Table 15 of the datasheet, the Tbuf time is min. 4.7 us in the Standard mode, while in your case it seems to be 2.5 us only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Dyn Char.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116289i681C9EB50012B896/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dyn Char.JPG" alt="Dyn Char.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2020-07-20_9-08-35.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116290i667C540EED52EFEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-07-20_9-08-35.png" alt="2020-07-20_9-08-35.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 07:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063808#M8963</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2020-07-20T07:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nxp PCA9685 PWM LED controller register read write problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063809#M8964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Tomas,&lt;/P&gt;&lt;P&gt;I have add 10ms between write and read functions. But the read back register data is still 0xff&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fiske Lin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:45:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063809#M8964</guid>
      <dc:creator>pylin</dc:creator>
      <dc:date>2020-07-20T08:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nxp PCA9685 PWM LED controller register read write problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063810#M8965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Lin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking once again at your captured I2C traffic, it appears that your &lt;EM&gt;PCA9685_read_byte()&lt;/EM&gt; function requires some modification. The first two bytes are correct, but they need to be followed by a &lt;STRONG&gt;repeated start condition&lt;/STRONG&gt; (which is not visible in the captured data) and&amp;nbsp;the I2C address again with the R/W bit high (0xF9).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should see:&lt;/P&gt;&lt;P&gt;Setup Write to [0xF8] + ACK&lt;/P&gt;&lt;P&gt;0x00 + ACK&lt;/P&gt;&lt;P&gt;Setup&amp;nbsp;Read to [0xF9] + ACK&lt;/P&gt;&lt;P&gt;0x01 + NAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 11:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Nxp-PCA9685-PWM-LED-controller-register-read-write-problem/m-p/1063810#M8965</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2020-07-20T11:29:27Z</dc:date>
    </item>
  </channel>
</rss>

