6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 14, 2024 6:32 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Oct 24, 2024 4:03 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
It seems my understanding of input voltages of the 65C22 was not correct. I had falsely assumed that because the 65C22 can run at 5V or 3V3, then it could take either-or without issue.

For example, I thought I could run VCC at 3V3 and the inputs would accept 5V. But it seems I didn't "RTFM" close enough. LOL (no harm done, at least).

Instead, the maximum voltage is VCC + 0.3V.

If my board is mostly 3V3 but I want to interface to the outside world (via the two ports) at 5V, what is the best way to handle that? The 75LVC245 is common but I would have to set the direction and considering each pin of a port could be either input or output, I don't think that would work.

Should I just look into some bi-directional level converter and put between the ports and the headers?

Thanks!

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 24, 2024 4:52 pm 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 964
Location: Potsdam, DE
Your problem is the body diode between I/O pins and the substrate. Overdriving the inputs is unlikely to damage the chip, particularly if current limited, but will power the chip rather unexpectedly - and potentially the rest of the circuit to which its Vcc is attached.

Not good. It happens sometimes with 'TTL level' RS232 signals, which idle high, and can power, or prevent proper reset behaviour, entire CMOS circuits.

If you're not going to be driving stuff at MHz rates, the approach here https://learn.sparkfun.com/tutorials/bi ... -guide/all might be worth a read.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 24, 2024 8:59 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1250
Location: Soddy-Daisy, TN USA
I plan on running between 1-2 MHz normally with 6-8 MHz being top end.

What about these?

https://www.mouser.com/ProductDetail/Te ... tYOw%3D%3D

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 25, 2024 4:49 am 
Offline

Joined: Mon Jan 19, 2004 12:49 pm
Posts: 964
Location: Potsdam, DE
If you can live with the packaging - TSSOP is the largest - then they look ideal. I've considered them myself for the same application but eventually didn't need them (I changed everything to 3v3) so can't tell you how they work, but the spec sheet looks good - either for a 5v IO part interfacing to a 3v3 bus, or for 5v I/O from a 3v3 part.

Neil


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 25, 2024 5:17 am 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
Can you use a simple resistor divider?

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 25, 2024 5:45 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8483
Location: Midwestern USA
Rob Finch wrote:
Can you use a simple resistor divider?

Possibly, if you can tolerate the resistors’ effects on signal rise and fall times.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 25, 2024 7:03 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8540
Location: Southern California
This topic is relevant:
viewtopic.php?f=4&t=7119

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 30 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: