The Godfather talking
Share your stuff or I will make you regret it.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 11:29:06 11:29


Login with username, password and session length


Pages: [1]
Print
Author Topic: I need help - I need an idea for level shifting  (Read 5042 times)
0 Members and 1 Guest are viewing this topic.
LabVIEWguru
Senior Member
****
Offline Offline

Posts: 300

Thank You
-Given: 270
-Receive: 593



« on: May 26, 2010, 06:37:08 06:37 »

Gents:

I'm working on a home project (since I don't have a job) using a Freescale 68HC908QC16, Atmel SPI memory and some other stuff at 3.3 volts. All is working well so far. I want to use a 7 segment, 6 digit display driven my a Maxim MAX7221 driver. This way I can send commands to the digit driver via SPI. The problem is that the max7221 spi is at 5 volt logic level, and the 68HC908QC16 SPI is at 3.3 volts. Of course the conversion has to be a "nice" square wave. I can't find any component made to do the level conversion. Transistor drive chews off the corners of the spi. I can't be the first person to have this problem, but I can't find any solutions - anyone have any ideas? Thanks in advance.

LabVIEWguru

Well, I just discovered the 74LC245 Level Shifter IC - guess I'll have to find a few. Any ideas out of junk-box parts?
« Last Edit: May 26, 2010, 06:50:08 06:50 by LabVIEWguru » Logged
sputnik
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 9
-Receive: 39


« Reply #1 on: May 26, 2010, 06:50:45 06:50 »

The MAX6951 is the 3v counterpart to the 7221.  May be cheaper to just get the right part.
Logged
hate
Hero Member
*****
 Warned
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #2 on: May 26, 2010, 11:08:09 11:08 »

A level shifter would be the best solution in my opinion but if u need a junk-box solution u can use an opamp in comparator mode to shift the voltage levels. That will be near perfect square wave. U will need to use an opamp with output voltage swing levels near to supply voltage like LM358 or so. Connect a voltage divider consisting of 2 resistors with an output level of about 1.5V to the inverting input, connect ur low voltage output to the non-inverting input and the output of the opamp will be ur input for the high voltage chip. That should work.

Regards...
Logged

Regards...
falcon _bd
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #3 on: May 26, 2010, 04:20:04 16:20 »

you can use this ckt


Or use this chip TXS0104E
« Last Edit: May 26, 2010, 04:22:09 16:22 by falcon _bd » Logged

titi
Active Member
***
Offline Offline

Posts: 229

Thank You
-Given: 3697
-Receive: 834



« Reply #4 on: May 26, 2010, 04:58:23 16:58 »

Hi,

I think you need nothing to interface MAX7221.
If the MAX7221 works in 5v and its logic is in CMOS, so its low level is near 0v, so no problem for low level.
For high level, CMOS need upper VCC/2, so need above 2.5v, if SPI give 3.3v, you are above 2.5v that give good high level.
The simpless way is to check, there is no risk, and there is a good chance that it works.

Best Regards.

Logged
sohel
Senior Member
****
Offline Offline

Posts: 442

Thank You
-Given: 167
-Receive: 149



« Reply #5 on: May 27, 2010, 07:44:48 07:44 »

Here for PIC microcontroller. ODCx Register

http://pic24micro.com/general_purpose_input_output_introduction.html
Logged
DreamCat
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 223
-Receive: 116



« Reply #6 on: May 27, 2010, 03:33:51 15:33 »

if you only need a few port to do level shifiting,  you can use mosfet  done it.
here is a article:http://delphys.net/d.holmes/hardware/levelshift.html

for more port, such as bus, maybe SN74LVC4245, HCF40109 or other chip can help you.

you also can search this article:
AN97055_MOSFET Bi-directional level shifter Application Note
release by philps
« Last Edit: May 28, 2010, 05:37:54 05:37 by DreamCat » Logged

May be I expressed the wrong meaning, sorry for my bad english. Please correct it for me if you can.
LabVIEWguru
Senior Member
****
Offline Offline

Posts: 300

Thank You
-Given: 270
-Receive: 593



« Reply #7 on: May 30, 2010, 07:29:04 07:29 »

Gentlemen:

Titi, I was hoping you were right but it just won't see the 3.3 - 3.6 volt signal. I will build an interface  such as dreamcat or Falcon or Hate (Good idea!) suggested and order the level shifter devices next week. I will post the board design in EAGLE for the display (very simple, very neat) I want to use it with a 68hc908qc16 microcontroller to control an Analog Devices DDS device, but until I got it built I was trying to use it in another prototype as a toy to show address and data for debugging.
Logged
DreamCat
Senior Member
****
Offline Offline

Posts: 284

Thank You
-Given: 223
-Receive: 116



« Reply #8 on: May 31, 2010, 03:03:16 15:03 »

I remember there is two article about level shifting ong END IDEA....

I searched my harddisk.. here is one.

for my self, I'm using BS170 to done this.

« Last Edit: May 31, 2010, 03:05:31 15:05 by DreamCat » Logged

May be I expressed the wrong meaning, sorry for my bad english. Please correct it for me if you can.
TomJackson69
Active Member
***
Offline Offline

Posts: 218

Thank You
-Given: 26
-Receive: 63


« Reply #9 on: June 01, 2010, 11:29:39 23:29 »

How about using just one CD4049 or CD4050 gate for level shifting.

Quote from the data sheet:
“The CD4049UB and CD4050B devices are inverting and
non-inverting hex buffers, respectively, and feature logiclevel
conversion using only one supply voltage (VCC). The
input-signal high level (VIH) can exceed the VCC supply
voltage when these devices are used for logic-level
conversions. These devices are intended for use as CMOS
to DTL/TTL converters and can drive directly two DTL/TTL
loads. (VCC = 5V, VOL ≤0.4V, and IOL ≥3.3mA.)”

It can be used for:
• CMOS to DTL/TTL Hex Converter
• CMOS Current “Sink” or “Source” Driver
• CMOS High-To-Low Logic Level Converter

Please refer to the data sheet to make sure.

Tom
Logged

Con Rong Chau Tien
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC