3V3 interface 5V Logic

i want to make a driver with a standard at ps2 pc keyboard, but i am having problems on interfacing the 5volt data and clock of the keyboard to the 3volt (not 5 volt tolerant) arm controller pin. I want to be able to send data and to receive data from the keyboard, i found some level shifters like max3371 wich are kind of expensive, Is anyone have any idea? Unfortunattely I didn’t find anything on the internet inerfacing 5v to 3v3.

Thanks in advance!

If it’s only a few signals, why not just use some BJTs?

thank you for your quick reply andrey.

Do you have any web link with allready made cirquits i could use for the logic interface ?

I dont know if you can use BJT’s biderectional. It might be better to use a mosfet such as BS108 with two pull up resistors resisitors on each IO.

Thank you for your reply Rhino.

I am trying to find a solution more than 2 weeks… I didn’t find any project connecting a ps2 keyboard with an arm7 on the net. I am trying to find the best way to solve the logic interface problem.i think my problem should be the most common problem with arm devices.

Any body any ideas or any url i could use ?

Depending on your ARM chip, many have 5V tolerant digital input pins for reading stuff in from your keyboard. For the stuff you have to send out of the keyboard, it is pretty easy to use a single transistor as a level translator. However, if you have to go both ways on one pin, then you’ll need to get one of the Maxim level translators that go both ways (can’t remember the part number right off hand) or something like it. Check this forum post: http://www.sparkfun.com/cgi-bin/phpbb/v … axim+level

I ran across this document on Microchip’s site a few days ago, titled “Tips ‘n Tricks a designer would need to handle the 3.3V challenges”:

http://www.microchip.com/stellent/group … 026368.pdf

It gives you circuits for many different ways of interfacing digital & analog signals between 3.3 and 5V chips. Even though it uses PICs in the examples, most of the solutions would work equally well for any other microcontrollers.

TI has a similar document on interfacing their MSP430 controllers to 5V systems. It showed most of the same tricks, but I didn’t find it as easy to read. You can probably find the same sort of app notes from other vendors too.

thank you all !

I will have a look right away and i will get back.

There are alot of overvoltage tolerant buffer chips out there. For example, I use the Fairchild NC7NZ34 to interface a 3.3V system to a 2.8V system. There are of course discrete solutions, but I prefer the simplicity of a buffer.

Thank you All for your Help!

I will use the pca9306 (price ~0,47$).

I found all the the above links very usefull.