Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Interfacing 3.3V microcontroller to a 5V devices

Status
Not open for further replies.

CM600

Member level 3
Joined
Jan 26, 2004
Messages
63
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Location
BG
Activity points
556
3.3 to 5v buffer

Hello and marry xmas :)))
Can someone give me an idea how to interface a 3.3V microcontroller (ADuC702x) to a 5V MAX7219? The 7219 needs a minimum of 3.5V for the SPI clock, so i need something to convert the level (3.3 -> 5) in one direction at 1.6MHz minimum.
:D
 

Tohu

Full Member level 1
Joined
Jun 9, 2004
Messages
96
Helped
16
Reputation
32
Reaction score
4
Trophy points
1,288
Activity points
1,328
buffer 3.3 to 5v

If you look only of the one way convertor you can use NPN transistor, signal will be inverted, or any CMOS element with the open drain output.

p.s. in the future you can use this, if you don't know:
h**p://www.mcu-bg.com , very good forum in Bulgarian language ;)
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,309
Reputation
4,620
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
74lcx4245

Have a look at pictures below ..
On coverts level from 5V to 3V logic, the other converts the opposite way around ..
I prefer the nFET, because you can have a true 0V at logic L, but any 2n2222 or other general purpose NPN will do ..
As pullups use resistors of 500Ω to 2KΩ for fast rise times ..
Regards,
IanP
 

Tohu

Full Member level 1
Joined
Jun 9, 2004
Messages
96
Helped
16
Reputation
32
Reaction score
4
Trophy points
1,288
Activity points
1,328
5 volt to 3.3 volt buffer

Hi,
the schem is OK but you can have a problem with a frequency, the MOSFET have a high capacitance between gate and source. On 2 Mhz this capacitance can be a problem for the output circuit on the controller, the result will be slide edge. If you use JFET the result will be better, because JFET have a lowest capacitance. And, something other, the more of the MOSFET is need around 5 V to saturation, if will use MOSFET first look for the saturation voltage.
 

gidimiz

Advanced Member level 1
Joined
Feb 3, 2005
Messages
427
Helped
123
Reputation
246
Reaction score
40
Trophy points
1,308
Activity points
5,166

phucthinhel

Newbie level 5
Joined
Jan 29, 2006
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,347
bufor 3.3-5v

You cand use two resistors to div volt :
|
----
| |
| |
----
|_
|
----
| |
| |
----
|
------
 

olemp

Full Member level 1
Joined
Jul 18, 2004
Messages
96
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,288
Location
turkiye
Activity points
1,043
interfacing 3.3v microcontroler to 5v lcd

from 3.3v interface to 5v interface you can use a buffer...for example 74hc541...supply the buffer with 5v and connect your 3.3v interface to buffer directly....

from 5v interface to 3.3v interface a basic resistor divider will work fine enough....
 

cheng

Member level 5
Joined
Dec 31, 1999
Messages
89
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Activity points
1,588
74hct244 examples

The cheapest translator is probably the one used by Ian. My approach though is different. I use digital switch like 3244 and can convert to ANY level by using appropriate VCC and series diodes. And no penalty in speed. The other direction I found working good is to use HCT or AHCT or ACT series that has TTL levels. You do have somewhat increased consumption but most of the time it can be sacrificied.

Regards.

BTW, in the past I often did the inverter - but single stage and had my data inverted in the MCU by software routine. Works great too and avoid one more delay etc....
Today there are lots of TrenchFET's on the market with very decent performance.
 

aNdreiBuuu

Full Member level 4
Joined
Apr 30, 2001
Messages
223
Helped
25
Reputation
50
Reaction score
12
Trophy points
1,298
Location
moon
Activity points
1,811
interfacing 3.3 volt logic with 5v

MAX3002 can also be a good option for bidirectional bus level translation...
h**p://pdfserv.maxim-ic.com/en/ds/MAX3000E-MAX3012.pdf

hope this helps,
//a
 

cheng

Member level 5
Joined
Dec 31, 1999
Messages
89
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Activity points
1,588
bidirectional buffer 3.3 to 5v

MAx series translators are rip off all the way.
Been looking 20 times and find them prohibitively overpriced. Many other good alternatives exist.
 

Davood Amerion

Advanced Member level 2
Joined
Mar 1, 2005
Messages
584
Helped
116
Reputation
232
Reaction score
24
Trophy points
1,298
Location
Persia
Activity points
6,351
buffers 3.3 5v

You can use 74LSxx buffer in any direction.
for example 74LS09.
 

LBdgWgt

Member level 5
Joined
Mar 6, 2006
Messages
83
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,286
Activity points
2,066
5v npn transistor ttl

maybe a voltage comparator will also be nice option
(eg. LM393 from National Semiconductor)

regards,
 

philba

Full Member level 2
Joined
Jan 26, 2006
Messages
132
Helped
13
Reputation
26
Reaction score
1
Trophy points
1,298
Activity points
3,102
how to connect a 3.3v microcontroller to a 5v spi

A lot depends on whether your 3.3V logic is 5V tolerant or not.

For unidirectional, I'd take a look at 74HCT logic. very cheap and widely available. there are buffers, transceivers, NAND gates, etc. For example, the 74HCT244 is an octal buffer and costs around $.30 for 8 drivers in an SOIC or TSSOP. less than 4 cents a driver.

I also like the Fairchild Tinylogic series. They have several single gate packages with TTL (2V) like input levels in SOT packages. very small but still hand solderable. No TTL buffers, unfortunately.
 

Pont de Pedra

Junior Member level 3
Joined
Dec 7, 2005
Messages
27
Helped
5
Reputation
10
Reaction score
3
Trophy points
1,283
Location
CATALUNYA
Activity points
1,561
buffer de 3.3 a 5v

If the line is bidirectional, as a data bus is, keep in mind that you'll need to control the sense of the signal. For instance if you want control an 5V LCD whith a 3.3V microcontroler.

gidimiz give an interesting solution.

Regards
 

hoang_quy

Junior Member level 1
Joined
Sep 9, 2005
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,426
74hct244 circuit +3.3

You can using 74LCX4245 for your project .
 

eehero

Full Member level 3
Joined
Nov 23, 2005
Messages
169
Helped
13
Reputation
26
Reaction score
5
Trophy points
1,298
Location
Libya
Activity points
2,620
i need to convert 5 volt data signal to 3.3 volt

what is about 74HC573?
 

gravi

Full Member level 2
Joined
May 30, 2006
Messages
126
Helped
10
Reputation
20
Reaction score
10
Trophy points
1,298
Location
Hyderabad, India
Activity points
2,421
Re: max3002 invertiert

Thank You friends, Now I am having more number of options shortly I will post which ever I used.

Thanking You,
Ravi Kumar
 

info_req

Member level 5
Joined
Jun 20, 2007
Messages
81
Helped
6
Reputation
12
Reaction score
4
Trophy points
1,288
Location
Pakistan
Activity points
1,764
use level translators from TI, good choice available. or use low priced ooptocouplers. or simple NPN transistors. Logic may change depending on your design, however level translation may be implemented in many different ways.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top