5v-3v3 bidirectional buffer

For discussing the 65xx hardware itself or electronics projects.
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

5v-3v3 bidirectional buffer

Post by barnacle »

I'm sure I've come across such an animal: bidirectional buffer with +5 and +3.3v rails, but I'm blowed if I can remember a part number... my search-fu is weak today. It feels like it might be a VLC part...

Any thoughts?

Thanks,

Neil
fachat
Posts: 1123
Joined: 05 Jul 2005
Location: near Heidelberg, Germany
Contact:

Re: 5v-3v3 bidirectional buffer

Post by fachat »

Something like 74lvc4245 ?
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content: http://6502.org/users/andre/
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: 5v-3v3 bidirectional buffer

Post by barnacle »

That's the puppy! Thanks...

I have a coprocessor running at 3v3, but I'd like to run logic at 5v for speed even though the 6502 is happy at the lower voltage.

Neil
User avatar
drogon
Posts: 1671
Joined: 14 Feb 2018
Location: Scotland
Contact:

Re: 5v-3v3 bidirectional buffer

Post by drogon »

The PiTubeDirect project uses a pair of 74LVC245A chips to interface the 5v BBC Micro to the 3.3v Pi. It would rely on the 5v side being able to treat a 3.3v signal as logic 1 but they work well in the Beeb at 2Mhz.

-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
fachat
Posts: 1123
Joined: 05 Jul 2005
Location: near Heidelberg, Germany
Contact:

Re: 5v-3v3 bidirectional buffer

Post by fachat »

Good point. 3.3V CMOS outputs typically work driving 5V TTL(!) Inputs. But if there are CMOS inputs on the 5V side - and this is more and more common - you may get into trouble. It may work depending on load and other conditions - but no guarantees.

Edit: and of course the 3.3V side inputs must be 5V tolerant
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content: http://6502.org/users/andre/
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: 5v-3v3 bidirectional buffer

Post by barnacle »

That's my concern. I've carefully arranged the connection to the 3v3 STM to use only its 5v tolerant pins, but it's uncertain just how much noise margin there is (n't) going to be to 5v cmos on the 6502 side. It's probably OK for a home test, but I'd like to get it right.

Neil
User avatar
Proxy
Posts: 746
Joined: 03 Aug 2018
Location: Germany

Re: 5v-3v3 bidirectional buffer

Post by Proxy »

to throw my 2 cents into the mix, i've been using the FT240X in basically all of my current projects, it only has 3.3V outputs but i've never had any issues when connected to a 65xx Bus or any 5V logic (PLD/CPLD/etc).
the maximum voltage it can give out is 3.6V and the minimum for the 65C02 (according to it's pessimistic datasheet) is 3.5V when using a perfect 5V supply.
though honestly i wouldn't be surprised if it accepted voltages as low as 3V.

so you could just try it and it would very likely just work even at decent double digit clock speeds. though if you want to be safe, use some level shifters like the TXB0108 (which is bi-directional) or a buffer like drogon suggested.
sburrow
Posts: 833
Joined: 09 Oct 2021
Location: Texas

Re: 5v-3v3 bidirectional buffer

Post by sburrow »

Don't know if this is closer to what you are wanting or not, but I'll be using the TXB0104D:

https://www.ti.com/lit/ds/symlink/txb0104.pdf

It doesn't have 8 bits, but it is bi-directional and super flexible.

Thanks!

Chad
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: 5v-3v3 bidirectional buffer

Post by barnacle »

Another couple of possibilities, thanks. I need to consider whether the processor and memory can both deliver 2mA/pin; that's a big chunk of current...

Neil
User avatar
speculatrix
Posts: 151
Joined: 03 Apr 2018
Contact:

Re: 5v-3v3 bidirectional buffer

Post by speculatrix »

sburrow wrote:
Don't know if this is closer to what you are wanting or not, but I'll be using the TXB0104D:

https://www.ti.com/lit/ds/symlink/txb0104.pdf

It doesn't have 8 bits, but it is bi-directional and super flexible.
There is an 8-channel version. But all the TXB family are a little limited on power output, I think.
It either works or catches fire. Either way is fun.
Zolatron 64 project (on Medium)
User avatar
Michael
Posts: 633
Joined: 13 Feb 2013
Location: Michigan, USA

Re: 5v-3v3 bidirectional buffer

Post by Michael »

There are some nice 8-channel TXS0108E 'modules' available, too.
Attachments
TXS0108E Module.png
TXS0108E Level-Shifter.pdf
(2.18 MiB) Downloaded 75 times
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: 5v-3v3 bidirectional buffer

Post by BigDumbDinosaur »

Proxy wrote:
to throw my 2 cents into the mix, i've been using the FT240X in basically all of my current projects, it only has 3.3V outputs but i've never had any issues when connected to a 65xx Bus or any 5V logic (PLD/CPLD/etc).
the maximum voltage it can give out is 3.6V and the minimum for the 65C02 (according to it's pessimistic datasheet) is 3.5V when using a perfect 5V supply.
though honestly i wouldn't be surprised if it accepted voltages as low as 3V.

so you could just try it and it would very likely just work even at decent double digit clock speeds. though if you want to be safe, use some level shifters like the TXB0108 (which is bi-directional) or a buffer like drogon suggested.

A lot of these devices have clamping diodes on their inputs that may make the inputs okay with five volts, at the expense of some additional loading on whatever is driving the inputs.  There may be something about such a feature in the data sheet.

However, note that PLDs produce TTL-level outputs, not CMOS.  A PLD output that has been driven high will not exceed ~3.4 volts under very light loading.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: 5v-3v3 bidirectional buffer

Post by barnacle »

Yes. I want to drive a 5v address bus from 3v3, and read and write a 3v3 data bus... so even with 5v tolerant inputs on the STM I need to ensure that it's driving hard enough. I'm planning on three 74LVC4245 for simplicity (even though it looks like my package choice is either DIP or TSSOP - the latter being a bit tricky to solder).

Neil
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: 5v-3v3 bidirectional buffer

Post by barnacle »

An aside: PS/2 keyboard or mouse use a 5v Vcc so I assume TTL logic levels, right? So another level converter required there, since I intend to use the STM to talk to it.

Neil
User avatar
AndrewP
Posts: 368
Joined: 30 Aug 2021
Location: South Africa

Re: 5v-3v3 bidirectional buffer

Post by AndrewP »

barnacle wrote:
An aside: PS/2 keyboard or mouse use a 5v Vcc so I assume TTL logic levels, right? So another level converter required there, since I intend to use the STM to talk to it.
I haven't read the PS2 spec (which I probably should do) but I tested two keyboards and they both run up to about 5V on signals.
PS2 Keyboard.jpg
('scope set to 5V per div, clock in yellow, data in blue)
Post Reply