Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 31st October 2008, 02:02 PM   #1
Default 5v to 3.3v - SPI Tranlation

Someone posted an article a while back which shows how to translate a SPI bus (or likely any bus really) from 3.3v to 5v so that one bus could work at both levels using only 1 fet and 1 resistor per line. I've been trying to find this document, but I have been unsuccessful. I have found Microchips 3.3 - 5v Tips 'n Tricks document, but I couldn't find what I was looking for exactly in there. I think I've replicated the circuit, but I wanted to compare it.
__________________
A rectangular bear is just a polar bear after a coordinate transform. -- I dunno who.
A recent study shows that research causes cancer in rats. -- I dunno who said that one either.
Noggin is offline  
Old 31st October 2008, 03:45 PM   #2
Default

Are you talking about 1 pull-up resistor connected to the "output high voltage supply" and one pull-down FET driven by the input line? (Will only work for unidirectional busses...so for SPI it is fine, but not for I2C).
__________________
Tanaka Sensei (avatar) says: Please spell it "ridiculous" correctly! Not "rediculous". ^^

Last edited by dknguyen; 31st October 2008 at 03:46 PM.
dknguyen is offline  
Old 31st October 2008, 04:31 PM   #3
Default

See if this fits your requirement.
Attached Thumbnails
5v to 3.3v - SPI Tranlation-5v_3v_level_conv.gif  
__________________
L.Chung
eblc1388 is offline  
Old 31st October 2008, 09:35 PM   #4
Default

Quote:
Originally Posted by dknguyen View Post
Are you talking about 1 pull-up resistor connected to the "output high voltage supply" and one pull-down FET driven by the input line? (Will only work for unidirectional busses...so for SPI it is fine, but not for I2C).
yes, thats what I'm talking about. When I saw it, I didn't realize that it was unidirectional. The SPI bus I have implemented uses the same line to transmit and receive on so thats probably why it wasn't working out in my head.
__________________
A rectangular bear is just a polar bear after a coordinate transform. -- I dunno who.
A recent study shows that research causes cancer in rats. -- I dunno who said that one either.
Noggin is offline  
Old 31st October 2008, 10:16 PM   #5
Default

The schematic posted by eblc1388 will work bi-directionally for I2C. It will not be fast enough for SPI though. For SPI I would use something like this:

Interface - Voltage Level Translation - TXB0104 - TI.com
speakerguy79 is online now  
Old 1st November 2008, 04:01 AM   #6
Default

Or these

http://www.onsemi.com/pub_link/Colla...VHC1G125-D.PDF
http://www.onsemi.com/pub_link/Colla...HC1GT125-D.PDF
http://www.onsemi.com/pub_link/Colla...VHC1GT50-D.PDF
__________________
We never have time to do it right; but we always have time to do it over.

Last edited by Papabravo; 1st November 2008 at 04:11 AM.
Papabravo is online now  
Reply

Tags
33v, spi, tranlation

Thread Tools
Display Modes




All times are GMT. The time now is 01:01 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker