SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By Azimon
#70343
I have a 5v device sending data out on its Tx and I have to connect it to a MSP430's Rx which is 3.3v level. I tried using a simple resistive divider (5K and 10K) but behavior is erratic (sometimes works, sometimes does not, sometimes starts when you touch it...). What is a better way of doing this? Using a MOSFET?

Thanks
By gm
#70375
If it is 5V to 3v, I usually use a buffer that has 5V-tolerant inputs. You can use something like a Fairchild NC7SZ125. It is only 1 gate so it doesn't take up much real estate.

Cheers!

gm
By Azimon
#70379
gm wrote:If it is 5V to 3v, I usually use a buffer that has 5V-tolerant inputs. You can use something like a Fairchild NC7SZ125. It is only 1 gate so it doesn't take up much real estate.

Cheers!

gm

I don't understand, what is the NC7SZ125 supposed to do? I only see one connection to Vcc. How does it work?
By nhunsperger
#70380
Azimon wrote: I don't understand, what is the NC7SZ125 supposed to do? I only see one connection to Vcc. How does it work?
The key is that the NC7SZ125 is tolerant of a 5V input when powered at 3.3V, so it only needs a single power rail. The output toggles between gnd and Vcc, while the input can go between gnd and 5V, in your case.