Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Buffer IC - 5Volt I/O drive 3.3Volt module

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Dear All,

I would like to know what is the suitable ic to drive 3.3Volt module if my 8bit I/O port is ~5Volt.

Is it possible to use 74HC245 as buffer? The Vcc connect to 3.3Volt. Any 5Volt input is given to 74HC245 will given 3.3Volt output.

Following 2 table is from 74HC245 datasheet but i'm not sure which table i should refer. Please kindly advice.

Thank you.
 

Question is, do you need a buffer at all?
If it is microcontroller pin, I has internal protection against voltages higher than Vdd and lower than Vss, and all what you need to do is to provide a series resistor to each pin, I’d say for 5V-to-3.3V a 1k resistor should work ..

IanP
:D
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Dear Ianp,

Is you again. Thanks for your reply.

Actually, recently i'm looking some TFT LCD. Operation for this LCD is 2.8~3.0V. Not sure can support 3.3V not. Currently, just do some study first.

Yes, I'm using AT89C52 microcontroller which to use that to control the TFT LCD 16/8-bit data and control pin.

Q1) May i know how you calculate the 1k resistor value?

Q2) Will the send/receive signal stable just connect a 1k resistor in between uC I/O port to LCD port?

Q3) Another concern is when the output signal is send from the LCD module which is lower laver voltage signal (let say ~2.8V signal) to high laver voltage 5V, can the uC I/O detect 2.8V signal? (External uC i/o port will have pull-high 4.7k resistor.)

In the uC datasheet said:
ViL - 0.2Vcc-0.1
ViH - 0.2Vcc+0.9
VoL - 0.45
VoH - 2.4, 3.75, 4.5

Thank you.
 

May i know how you calculate the 1k resistor value? Will the send/receive signal stable just connect a 1k resistor in between uC I/O port to LCD port?

The input protective diodes may withstand roughly 20mA, so one or two mA shouldn’t be an issue ..
Of course, the higher the resistance the lower the frequency of the control signal ..
So, considering all of the above – 1k sounds reasonable ..

On the other hand, there are special level voltage translators that are used as buffers between 3.3V and 5V buses .
Have a look at the SN74LVC4245A:
**broken link removed**

IanP
:D
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Dear Ianp,

Thanks for recommend this SN74LVC4245A IC i like it but i think in local i can't get this IC might need to order from oversea and expensive :(

Can we use 74HC/LVC245? This IC i think i can get it from local.
 

Q3) Another concern is when the output signal is send from the LCD module which is lower laver voltage signal (let say ~2.8V signal) to high laver voltage 5V, can the uC I/O detect 2.8V signal? (External uC i/o port will have pull-high 4.7k resistor.)

In the uC datasheet said:
ViL - 0.2Vcc-0.1
ViH - 0.2Vcc+0.9
VoL - 0.45
VoH - 2.4, 3.75, 4.5

ViL - 0.2Vcc-0.1 => 0.2*3.3-0.1 => 0.56V
ViH - 0.2Vcc+0.9 => 0.2*3.3+0.9 => 1.56V

I don’t see problems here ..

Have a look at the attached picture ..
It shows both possible scenarios:
3.3V [out] to 5V [in]
5V [out] to 3.3V [in]
**broken link removed**

IanP
:D
 

    Help

    Points: 2
    Helpful Answer Positive Rating
In the uC datasheet said:
ViL - 0.2Vcc-0.1
ViH - 0.2Vcc+0.9
VoL - 0.45
VoH - 2.4, 3.75, 4.5

Sorry for make you miss undestand the table. Actually this table is for AT89C52. so...
ViL(input Lo to uC) - 0.2Vcc-0.1 => 0.2*5-0.1 => 0.9V
ViH(input Hi to uC) - 0.2Vcc+0.9 => 0.2*5+0.9 => 1.9V
VoL(Output Lo to uC) - 0.45V
VoH(Output Hi to uC) - 2.4~4.5V

Pin-3 MOSI is connected to one Diode. Since the 3.3V device is very low signal + Diode 0.7V. The 5V device will receive 2.6V signal for High. So this voltage signal laver wouldn't affected the uC input voltage laver (since the ViH for uC is 1.9V consider Hi), am i rite?

Thank you,.
 

That's right ..
and if you use a Schottky diode the margin is even better ..

IanP
:D

BTW. This drawing should have crossed-over MISO and MOSI pins .. but it has nothing to do with the voltage level issue .
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Dear Ianp,

Thanks for your advice. Ya, some of the Schottky diode will drop 0.3V only.

Please see the bellow picture. I still doubt the resistor and diode to drive the signal. So I do some simulation. The result look like not so ideality. Any idea about the result?

3-3V-device-to-5V-microcontroller
Why the CS pin-1 and the SCK pin-4 resistor connection is difference?
i) CS pin-1 will have a 10KOhm (can i use 4.7KOhm?) pull-up resistor plus 1kOhm in a series resistor to each pin.
ii) SCK pin-4 just provide a 10kOhm series resistor to each pin.

Is it we have 2 optional to control 3.3V device?
1st is to use 2 resistor. pull-up resistor + series a resistor.
2nd is just put a highest resistor value in series to each pin.

Thank you,.
 

I'm not going to judge why they used several different ways ..
I'd connect 1k series resistor and 10k pull-up (89S52 has only weak pullups) on the 3.3V side on all connections between the 5V-MCU and a 3.3V device ..
If you want to be sure that the 3.3V device is protected you can add a Schottky diode in parallel with the pull-up .. see attached picture ..


IanP
:D
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Dear Ianp

If you want to be sure that the 3.3V device is protected you can add a Schottky diode in parallel with the pull-up ..

Normally this kind of circuit protection what we call it? Sometime i have see some reference circuit they will connect the Schottky diode in paraller with pull-up/GND resistor.

Thank you.
 

Some engineers use the term =="Fail Safe" ESD== for this type of protection ..

IanP
:D
 

    Help

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top