<?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 Non-Open-Drain output 5V tolerance in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Non-Open-Drain-output-5V-tolerance/m-p/571309#M18348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MarcVonWindscooting on Sun Dec 22 16:28:53 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;finally I have my first real PCB based on LPC812 finished - a LED torch light/stoboscope driver 8-) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to explore both the LPC800 voltage range and the deep power-down mode. As the upper voltage of the LPC800 does not fit very well neither to 3 NiMH cells (3*1.25V = 3.75V) nor to a Li-Ion cell (4.3V) I decided to power it from a STLQ015XG33 nanopower, low-drop LDO. Some parts of the PCB still run from full supply voltage, i.e. I have to interface between two voltage levels, let's say from 3.3V (LPC800) to/from 5V levels (from an IR-receiver).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 2 indicator LEDs. One of those is driven by PIO0_7 and it's tied to +5V with a 1.3k resistor. Once PIO0_7 switches low the LED is on - OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now comes the interesting part: How can I switch this LED off? Open-drain would be the way to go, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC81XM data sheet states the following for P0_7: Table 4, footnotes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [2] 5V tolerant pad providing I/O functions with configurable pull-up/pull-down resistors and....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the user manual gives me this hint: 6.4.4 (Open-drain mode) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... This mode is not a true open drain mode. The input cannot be pulled above Vdd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(That leaks considerable current through the LED - it does not completely turn off)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now how can this &lt;/SPAN&gt;&lt;STRONG&gt;both&lt;/STRONG&gt;&lt;SPAN&gt; be true? Either the circuit is 5V tolerant, meaning it may be pulled up to 5V or it isn't and I only have a 3.3V open-drain (emulation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some experimenting showed, that it is really like that: if configured as input (pull up/down/repeater disabled), PIO0_7 is high impedance, even with the LED at 5V. If PIO0_7 is configured as output - standard output, it it always sinks current if the output tries to go above Vdd (LED never switching completely off).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So setting the PIO0_7 output register to 0 and switching between input and output gives me the desired 5V (minus the LED-drop) tolerant 'open drain'. Why the hell isn't that possible in the open-drain mode in the first place? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't feel very comfortable with this trick and I assume something goes wrong here as soon as I enter deep power-down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not publish the 'real' schematic of the outputs? What does NXP mean by a FET with an inverter circle on its gate (6.4.1, the upper FETs)? N-channel depletion? P-channel enhancement? What about the substrate??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:13:38 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:13:38Z</dc:date>
    <item>
      <title>Non-Open-Drain output 5V tolerance</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Non-Open-Drain-output-5V-tolerance/m-p/571309#M18348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MarcVonWindscooting on Sun Dec 22 16:28:53 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;finally I have my first real PCB based on LPC812 finished - a LED torch light/stoboscope driver 8-) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to explore both the LPC800 voltage range and the deep power-down mode. As the upper voltage of the LPC800 does not fit very well neither to 3 NiMH cells (3*1.25V = 3.75V) nor to a Li-Ion cell (4.3V) I decided to power it from a STLQ015XG33 nanopower, low-drop LDO. Some parts of the PCB still run from full supply voltage, i.e. I have to interface between two voltage levels, let's say from 3.3V (LPC800) to/from 5V levels (from an IR-receiver).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 2 indicator LEDs. One of those is driven by PIO0_7 and it's tied to +5V with a 1.3k resistor. Once PIO0_7 switches low the LED is on - OK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now comes the interesting part: How can I switch this LED off? Open-drain would be the way to go, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC81XM data sheet states the following for P0_7: Table 4, footnotes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [2] 5V tolerant pad providing I/O functions with configurable pull-up/pull-down resistors and....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the user manual gives me this hint: 6.4.4 (Open-drain mode) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... This mode is not a true open drain mode. The input cannot be pulled above Vdd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(That leaks considerable current through the LED - it does not completely turn off)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now how can this &lt;/SPAN&gt;&lt;STRONG&gt;both&lt;/STRONG&gt;&lt;SPAN&gt; be true? Either the circuit is 5V tolerant, meaning it may be pulled up to 5V or it isn't and I only have a 3.3V open-drain (emulation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some experimenting showed, that it is really like that: if configured as input (pull up/down/repeater disabled), PIO0_7 is high impedance, even with the LED at 5V. If PIO0_7 is configured as output - standard output, it it always sinks current if the output tries to go above Vdd (LED never switching completely off).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So setting the PIO0_7 output register to 0 and switching between input and output gives me the desired 5V (minus the LED-drop) tolerant 'open drain'. Why the hell isn't that possible in the open-drain mode in the first place? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't feel very comfortable with this trick and I assume something goes wrong here as soon as I enter deep power-down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not publish the 'real' schematic of the outputs? What does NXP mean by a FET with an inverter circle on its gate (6.4.1, the upper FETs)? N-channel depletion? P-channel enhancement? What about the substrate??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:13:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Non-Open-Drain-output-5V-tolerance/m-p/571309#M18348</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:13:38Z</dc:date>
    </item>
  </channel>
</rss>

