65C22 at 3V3 but with 5V inputs

Let's talk about anything related to the 6502 microprocessor.
Post Reply
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

65C22 at 3V3 but with 5V inputs

Post by cbmeeks »

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.
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: 65C22 at 3V3 but with 5V inputs

Post by barnacle »

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
User avatar
cbmeeks
Posts: 1254
Joined: 17 Aug 2005
Location: Soddy-Daisy, TN USA
Contact:

Re: 65C22 at 3V3 but with 5V inputs

Post by cbmeeks »

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.
barnacle
Posts: 1831
Joined: 19 Jan 2004
Location: Potsdam, DE
Contact:

Re: 65C22 at 3V3 but with 5V inputs

Post by barnacle »

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
User avatar
Rob Finch
Posts: 465
Joined: 29 Dec 2002
Location: Canada
Contact:

Re: 65C22 at 3V3 but with 5V inputs

Post by Rob Finch »

Can you use a simple resistor divider?
User avatar
BigDumbDinosaur
Posts: 9425
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: 65C22 at 3V3 but with 5V inputs

Post by BigDumbDinosaur »

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!
User avatar
GARTHWILSON
Forum Moderator
Posts: 8773
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: 65C22 at 3V3 but with 5V inputs

Post by GARTHWILSON »

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?
Post Reply