Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 56
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Download (31)
ScottH (37)


Next birthdays
11/03 Electroguy (94)
11/04 nitromarsjipan (2024)
11/04 mb (31)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

It is a correct method for translating voltage levels from 5V to 3.3V and the converse?

1 2 
Move Thread LAN_403
TheMerovingian
Thu Dec 03 2009, 01:24PM Print
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
For a wind datalogger project i am interfacing an SD card via SPI and a PIC18f2550 microcontroller (working at 5V TTL/CMOS).
I need to understand if this method is correct (in simulator it works):

Level conversion from 5V to 3.3V , using a 74LS125 quad buffer powered with 3.3V (hope it will work at this low voltage) with 5V tolerant inputs


Level conversion from 3.3V to 5V , using a 74HCT125 quad buffer powered with 5V , the 74LS125 is TTL compatible with a threshold of 2V

Is this correct?

Another proposition is to use a 74HC125 powered at 3.3V with inline resistors on the input (letting the internal diodes clamp to 3.3V) but i am afraid it will deteriorate the signal due to capacitance/inductance of the resistors
Back to top
MinorityCarrier
Thu Dec 03 2009, 04:59PM
MinorityCarrier Registered Member #2123 Joined: Sat May 16 2009, 03:10AM
Location: Bend, Oregon
Posts: 312
LS-TTL should be run at 4.5-5.0V to guarantee internal stability. You can use a simple transistor level translator to interface to 3.3V.

HC and HCT devices can run at lower voltages, and your approach for this may work, but you may have a problem with noise. I'd recommend you Google level tranlation design for info on what works with HC logic.
Back to top
Z28Fistergod
Thu Dec 03 2009, 06:14PM
Z28Fistergod Registered Member #2040 Joined: Fri Mar 20 2009, 10:13PM
Location: Fairfax VA
Posts: 180
You mean nobody makes a purpose built chip?

TI has capacitive isolation chips that uses two independent supplies, the ISO724*. They are compatible with 3.3V and 5V, and the two supplies can be run at different levels to achieve the translation you want. They have four channels per chip, and various configurations from all 4 channels going in one direction to an even split of 2/2. The only catch is that they are SMD, if that matters to you.
Back to top
Bjørn
Thu Dec 03 2009, 06:21PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
The best method is usually to run the microcontroller at 3.3 V. Series resitors always work fine with frequencies as low as this. If you are very worried about noise, buffer with 74HC14 instead.
Back to top
WaveRider
Thu Dec 03 2009, 08:24PM
WaveRider Registered Member #29 Joined: Fri Feb 03 2006, 09:00AM
Location: Hasselt, Belgium
Posts: 500
I always use pics at 3.3V with 3V logic (74LVXX series works well...and is fast as well!) 5V logic brings back memories of the computer stone age!! wink
Back to top
TheMerovingian
Thu Dec 03 2009, 10:18PM
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
cannot run the microcontroller on 3.3V because i also need to interface the micro with a DS1307 RTC (although it can be run at 5V and work fine with 3.3V since the VIH is 2.2V) and with an LCD 16x4 display that wants to be driven at 5V.

For the dedicated chips i want to buy the components on Futurlec to avoid paying abnormous shipping charges (as on RS, mouser and digikey)

For the 3.3V->5V the 74HCT125 will work just fine (VIH = 2.0V , powered with 5.5V)

for the 74HC125 to do the 5V->3.3V conversion why we have problems with noise?

EDIT:
The LCD seems TTL compatible (VIH=2.0V) so when powered by 5V should work fine with a 3.3V powered microcontroller but i'm worried that the pic18f2550 would not work properly at 20MHz with 3.3V

Another possibility:

74HC4050 buffer For the 5V->3.3V conversion it can work at 3.3V and tolerate up to 15V on inputs

the 3.3V->5V conversion using 74HCT125

Found interesting article:
Link2
Back to top
Bjørn
Thu Dec 03 2009, 10:47PM
Bjørn Registered Member #27 Joined: Fri Feb 03 2006, 02:20AM
Location: Hyperborea
Posts: 2058
I always use the LCD displays with 3.3 V microcontrollers, use a 10 kOhm pull-up to 5 V on the enable pin (EN) to be sure of correct operation.

PIC18F2550 need a minimum of 4.2 V, PIC18LF2550 works down to 2 V. According to the formula and graph in the datasheet PIC18LF2550 should be able to do 25 MHz at 3.3 V.
Back to top
TheMerovingian
Thu Dec 03 2009, 10:52PM
TheMerovingian Registered Member #14 Joined: Thu Feb 02 2006, 01:04PM
Location: Prato/italy
Posts: 383
I have only access to pic18f2550 or pic18f2580 or pic18f2680 microcontrollers with enough ram and program space for FAT16 handling
Back to top
MinorityCarrier
Thu Dec 03 2009, 11:10PM
MinorityCarrier Registered Member #2123 Joined: Sat May 16 2009, 03:10AM
Location: Bend, Oregon
Posts: 312
Switching noise transients on the DC return can get superimposed on the logic outputs. For low voltage logic devices the transients can become significant, and can move the logic signal output from a True High or True Low State, to a Metastable State. Your idea of running a device at 3.3V from a 5V rail with other 5V logic, may put that 3.3V device output at risk for metastable conditions.

Those TI level translator chips look like what you might want to use.
Back to top
WaveRider
Fri Dec 04 2009, 08:47AM
WaveRider Registered Member #29 Joined: Fri Feb 03 2006, 09:00AM
Location: Hasselt, Belgium
Posts: 500
Open collector with pull-up resistors is often a convenient way to do level shifting . Just be aware of the increase in rise-time.

Going from 5 to 3.3V can be done by using a 100 ohm resistor in series with the 5V output and a reversed-biased low-barrier potential schottky diode tied between the 3.3V input and the 3.3V supply. Another reversed biased schottky diode can be tied between the input and ground to clip off undershoots...

Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.