<?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: Drive optocoupler from GPIO pin in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543929#M12803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 01:10:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-19T01:10:16Z</dc:date>
    <item>
      <title>Drive optocoupler from GPIO pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543925#M12799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by extest on Sun May 08 12:11:17 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to drive optocouplers from GPIO pins.&amp;nbsp; The 6N137 recommended forward current is about 10mA (min 5mA, max 15mA).&amp;nbsp; The datasheet for the LPC11U37 states that the standard GPIO pins can source/sink 4mA.&amp;nbsp; It seems like I would need a transistor in between the GPIO pin and the optocoupler since the LPC11U37 cannot provide enough current.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I'm confused, because in some NXP Application Note example circuits, I see them driving an optocoupler directly from a GPIO pin with a series 390 ohm resistor.&amp;nbsp; This works out to drawing about 8.5mA from the LPC micro.&amp;nbsp; (3.3V/390 = 8.5mA).&amp;nbsp; Check out page 4 of AN11153: &lt;/SPAN&gt;&lt;A href="http://http://www.mouser.com/pdfdocs/AN11153.pdf"&gt;http://www.mouser.com/pdfdocs/AN11153.pdf&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something, or is the circuit in AN11153 drawing 8.5mA from the micro GPIO pins?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543925#M12799</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Drive optocoupler from GPIO pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543926#M12800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun May 08 12:56:36 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: extest&lt;/STRONG&gt;&lt;BR /&gt;Am I missing something, or is the circuit in AN11153 drawing 8.5mA from the micro GPIO pins?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.4V Forward Voltage&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543926#M12800</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Drive optocoupler from GPIO pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543927#M12801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by extest on Sun May 08 18:11:30 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah, right.&amp;nbsp; So 3.3-1.4=1.9V, 1.9/390=4.87mA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That still leaves me with two questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) How are the LPC micro GPIO pins sinking more than 4mA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) How is the 6N137 operating when the min current is 5mA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543927#M12801</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Drive optocoupler from GPIO pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543928#M12802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon May 09 01:10:56 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: extest&lt;/STRONG&gt;&lt;BR /&gt;1) How are the LPC micro GPIO pins sinking more than 4mA.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As described in DS and UM: High-current output driver (20 mA)&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: extest&lt;/STRONG&gt;&lt;BR /&gt;2) How is the 6N137 operating when the min current is 5mA.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;As described in DS &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.vishay.com%2Fdocs%2F84732%2F6n137.pdf" rel="nofollow" target="_blank"&gt;https://www.vishay.com/docs/84732/6n137.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fig.16:&amp;nbsp; Output Voltage vs. Forward Input Current&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And with VOL = 0.4V the correct current calculation is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I = (3.3 - 1.4 - 0.4)V / 390 Ohm = 3.85 mA&amp;nbsp;&amp;nbsp; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:42:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543928#M12802</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Drive optocoupler from GPIO pin</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543929#M12803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:10:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Drive-optocoupler-from-GPIO-pin/m-p/543929#M12803</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:10:16Z</dc:date>
    </item>
  </channel>
</rss>

