6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 12:19 am

All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Nov 20, 2023 7:57 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 988
Location: Potsdam, DE
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 8:17 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1043
Location: near Heidelberg, Germany
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/


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 8:50 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 988
Location: Potsdam, DE
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 1:34 pm 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1488
Location: Scotland
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/


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 1:43 pm 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 1043
Location: near Heidelberg, Germany
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/


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 4:39 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 988
Location: Potsdam, DE
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 5:02 pm 
Offline
User avatar

Joined: Fri Aug 03, 2018 8:52 am
Posts: 746
Location: Germany
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 7:20 pm 
Offline

Joined: Sat Oct 09, 2021 11:21 am
Posts: 718
Location: Texas
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 7:45 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 988
Location: Potsdam, DE
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 8:38 pm 
Offline
User avatar

Joined: Tue Apr 03, 2018 2:10 pm
Posts: 125
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.

_________________
I like it when things smoke.
BlogZolatron 64 project


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 10:03 pm 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 589
Location: Michigan, USA
There are some nice 8-channel TXS0108E 'modules' available, too.


Attachments:
TXS0108E Module.png
TXS0108E Module.png [ 71.03 KiB | Viewed 3745 times ]
TXS0108E Level-Shifter.pdf [2.18 MiB]
Downloaded 48 times
Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2023 10:37 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
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!


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 21, 2023 6:12 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 988
Location: Potsdam, DE
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 21, 2023 6:23 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 988
Location: Potsdam, DE
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 21, 2023 10:18 am 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 287
Location: South Africa
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.
Attachment:
PS2 Keyboard.jpg
PS2 Keyboard.jpg [ 1.16 MiB | Viewed 3692 times ]
('scope set to 5V per div, clock in yellow, data in blue)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: GARTHWILSON and 52 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: