![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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. | |
| |
| | #2 |
|
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. | |
| |
| | #3 |
|
See if this fits your requirement.
__________________ L.Chung | |
| |
| | #4 |
| 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. | |
| |
| | #5 |
|
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 | |
| |
| | #6 |
|
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. | |
| |
|
| Tags |
| 33v, spi, tranlation |
| Thread Tools | |
| Display Modes | |
| |