<?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: controlling PCA9685PW leds in open drain mode in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2107372#M3772</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/138749"&gt;@guoweisun&lt;/a&gt;&amp;nbsp; and thanks for support.&lt;/P&gt;&lt;P&gt;I tried what you suggest just for led 0 but nothing is happening. Following the commands I send and the device responses:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikkolas_0-1748545751285.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340492i48A80EDB6989BEF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikkolas_0-1748545751285.png" alt="nikkolas_0-1748545751285.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One think to consider, looking to the schematic , the LEDS power supply is not Vdd of the PCA9865 chip (3,3V) but its 5V...dont think this is an issue since I configure the GPIO like opendrain .&lt;/P&gt;&lt;P&gt;As you can see I correctly write &lt;STRONG&gt;LED0_ON_L=0x00&lt;/STRONG&gt; and &lt;STRONG&gt;LED0_ON_H&lt;/STRONG&gt;=0x10 and i can even read the value back of the LED_ON_H back&amp;nbsp; and just written correctly: im sorry but nothing happens into my board.&lt;/P&gt;&lt;P&gt;Traces on the PCB seems to be ok infact when i give power to the board , all RED led are on (dont know whyhonestly) , but when i send the first command (INVRT=1), they goes all down.&lt;/P&gt;&lt;P&gt;Do you have some ideas? Is the schematic the issue?&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 19:24:53 GMT</pubDate>
    <dc:creator>nikkolas</dc:creator>
    <dc:date>2025-05-29T19:24:53Z</dc:date>
    <item>
      <title>controlling PCA9685PW leds in open drain mode</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2106513#M3769</link>
      <description>&lt;P&gt;Dear Staff,&lt;/P&gt;&lt;P&gt;I have the attached schematic using&amp;nbsp;PCA9685PW , and I need to switch on RGB leds individually.&lt;/P&gt;&lt;P&gt;I have sent the following&amp;nbsp; command succesfully in order to set the&amp;nbsp;PCA9685PW internal register for open drain configuration&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REGISTER&lt;/STRONG&gt;: 0x01, &lt;STRONG&gt;ADDRESS&lt;/STRONG&gt;: 0x10---&amp;gt;INVRT=1, OUTDRV=0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikkolas_1-1748459951048.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340277i870DA991069A9362/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikkolas_1-1748459951048.png" alt="nikkolas_1-1748459951048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I cant figure out how can i individually switch on and off the leds , something like&amp;nbsp; :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;switch on LED0&lt;/LI&gt;&lt;LI&gt;switch on LED1&lt;/LI&gt;&lt;LI&gt;switch on LED2&lt;/LI&gt;&lt;LI&gt;delay&lt;/LI&gt;&lt;LI&gt;switch off LED0&lt;/LI&gt;&lt;LI&gt;switch off LED1&lt;/LI&gt;&lt;LI&gt;switch off LED2&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Can you please send the right i2C tranaction?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Nicola&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="nikkolas_2-1748460244903.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340278iFBF8A4CCAE5F05AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikkolas_2-1748460244903.png" alt="nikkolas_2-1748460244903.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 19:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2106513#M3769</guid>
      <dc:creator>nikkolas</dc:creator>
      <dc:date>2025-05-28T19:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: controlling PCA9685PW leds in open drain mode</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2106655#M3770</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;A id="link_6" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230479" target="_self" aria-label="View Profile of nikkolas"&gt;&lt;SPAN class=""&gt;nikkolas&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can try as below mentioned:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The LEDn_ON_H output control bit 4, when set to logic 1, causes the output to be always &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ON.&lt;/STRONG&gt; The turning ON of the LED is delayed by the amount in the LEDn_ON registers. &lt;BR /&gt;LEDn_OFF[11:0] are ignored. When this bit = 0, then the LEDn_ON and LEDn_OFF &lt;BR /&gt;registers are used according to their normal definition.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;The LEDn_OFF_H output control bit 4, when set to logic 1, causes the output to be &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;always OFF.&lt;/STRONG&gt; In this case the values in the LEDn_ON registers are ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 02:14:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2106655#M3770</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2025-05-29T02:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: controlling PCA9685PW leds in open drain mode</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2107372#M3772</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/138749"&gt;@guoweisun&lt;/a&gt;&amp;nbsp; and thanks for support.&lt;/P&gt;&lt;P&gt;I tried what you suggest just for led 0 but nothing is happening. Following the commands I send and the device responses:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikkolas_0-1748545751285.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340492i48A80EDB6989BEF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikkolas_0-1748545751285.png" alt="nikkolas_0-1748545751285.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One think to consider, looking to the schematic , the LEDS power supply is not Vdd of the PCA9865 chip (3,3V) but its 5V...dont think this is an issue since I configure the GPIO like opendrain .&lt;/P&gt;&lt;P&gt;As you can see I correctly write &lt;STRONG&gt;LED0_ON_L=0x00&lt;/STRONG&gt; and &lt;STRONG&gt;LED0_ON_H&lt;/STRONG&gt;=0x10 and i can even read the value back of the LED_ON_H back&amp;nbsp; and just written correctly: im sorry but nothing happens into my board.&lt;/P&gt;&lt;P&gt;Traces on the PCB seems to be ok infact when i give power to the board , all RED led are on (dont know whyhonestly) , but when i send the first command (INVRT=1), they goes all down.&lt;/P&gt;&lt;P&gt;Do you have some ideas? Is the schematic the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 19:24:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2107372#M3772</guid>
      <dc:creator>nikkolas</dc:creator>
      <dc:date>2025-05-29T19:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: controlling PCA9685PW leds in open drain mode</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2107410#M3773</link>
      <description>&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guoweisun_0-1748552318927.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340512i7CEE4CB565C5CC92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guoweisun_0-1748552318927.png" alt="guoweisun_0-1748552318927.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see its LEDn channel structure which is push pull. so the high output is about VDD and low output is about ground,that's why we recommend application circuit drive&amp;nbsp; MOSFET instead of directly drive LED.&lt;/P&gt;
&lt;P&gt;In you case,you can pull up these LED into VDD and test again.&lt;/P&gt;
&lt;P&gt;2: You can refer to below picture showed example3:&lt;/P&gt;
&lt;P&gt;LEDn_ON[12] = 1; LEDn_ON[11:0] = 1022; LEDn_OFF[12] = 0; LEDn_OFF[11:0] = don’t care&lt;/P&gt;
&lt;P&gt;LEDn_ON[12] bit=LEDn_ON_H[4]bit&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="guoweisun_0-1748561214431.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340538i42368F5F207313CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guoweisun_0-1748561214431.png" alt="guoweisun_0-1748561214431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 23:28:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2107410#M3773</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2025-05-29T23:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: controlling PCA9685PW leds in open drain mode</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2107992#M3774</link>
      <description>&lt;P&gt;Ho&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/138749"&gt;@guoweisun&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;P&gt;I did a step further , I can switch on/off every LED0 channel (RED LED) in open drain configuration by :&lt;/P&gt;&lt;P&gt;deleting the sleep bit: &lt;STRONG&gt;MODE1&lt;/STRONG&gt;=0x01&lt;/P&gt;&lt;P&gt;and by switching the&amp;nbsp;&lt;STRONG&gt;LED0_OFF_H from 0x10 (off) to 0x00 (on)&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant figure out why this configuration doesnt work for other LEDn.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to investigate why by checking the PCB which seems to be ok ,&amp;nbsp; before to pull to 3,3V (Vdd) each leds and try the pushpull configuration you suggest.&lt;/P&gt;&lt;P&gt;One more thing,&lt;/P&gt;&lt;P&gt;do you have some use cases schematic in open drain mode ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 10:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2107992#M3774</guid>
      <dc:creator>nikkolas</dc:creator>
      <dc:date>2025-05-30T10:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: controlling PCA9685PW leds in open drain mode</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2108942#M3775</link>
      <description>&lt;P&gt;The others channels should be configured with your test LED0 channel,you can check the PCB layout again.&lt;/P&gt;
&lt;P&gt;I don't have your mentioned open drain reference design.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 00:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/controlling-PCA9685PW-leds-in-open-drain-mode/m-p/2108942#M3775</guid>
      <dc:creator>guoweisun</dc:creator>
      <dc:date>2025-06-03T00:23:59Z</dc:date>
    </item>
  </channel>
</rss>

