Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Joerg Newsgroups: sci.electronics.design Subject: Re: small project --> suggestion Date: Sun, 29 May 2016 12:19:52 -0700 Lines: 57 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net FIANltnXks6x92nY25K3GgB3qaz8KHJ3hrDN3lcHkDX6LmTT3m Cancel-Lock: sha1:NabJtY6fAQH2jHKLsZhV4gFiRkQ= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.6.666 In-Reply-To: Xref: csiph.com sci.electronics.design:413828 On 2016-05-29 11:09, gm wrote: > /////////////////////////////////////////// > GPIO voltage levels are 3.3V and are not 5V tolerant. There is no > over-voltage protection on the board - the intention is that people > interested in serious interfacing will use an external board with > buffers, level conversion and analog I/O rather than soldering directly > onto the main board. > > from: > http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/raspberry-pi/gpio-pin-electrical-specifications#rpi-gpio-input-voltage-and-output-current-limitations > > > These are 3.3 volt logic pins. A voltage near 3.3 V is interpreted as a > logic one while a voltage near zero volts is a logic zero. A GPIO pin > should never be connected to a voltage source greater than 3.3V or less > than 0V, as prompt damage to the chip may occur as the input pin > substrate diodes (shown as parasitic FETs in Figure 1) conduct. There > may be times when you may need to connect them to out-of-range voltages > – in those cases the input pin current must be limited by an external > resistor to a value that prevents harm to the chip. I recommend that you > never source or sink more than 0.5 mA into an input pin. > ///////////////////////////////////////////////// > The last two sentences are key: Limit the current into the ESD or substrate diode paths. Most modern chips can take 5-10mA but don't push it. The 4.99k in your new interface will limit that to less than 1mA. In general two things need to be kept in mind with any external driving: 1. If a higher than allowed voltage is applied yet properly current limited your target circuit (in this case the Raspberry) will dump this current into its logic supply rail. Most regulators on there can only source current but not sink any. So the other stuff on there must use enough current to consume this excess coming in. Usually not a problem but it can become an issue if the target board can go into low-power hibernation modes. Then the supply voltage might rise beyond safe levels unless you have means to clamp it. 2. When the target board is powered off any remaining external logic drive signals will try to feed the target board via the ESD diodes. That can cause it to do weird stuff such as an LCD flickering once in a while. > > Btw. i created as you suggested and i get max 3,25V and this is perfect. > I read in one doc, that HIGH level is from 2,8 - 3.3V > > Thank you ! You are welcome. As a co-worker from the software group once said when he got me out of a pickle, we are all here to serve. -- Regards, Joerg http://www.analogconsultants.com/