For space reasons, I would like to use a QFP-ish package for the 65C22 for a Commodore 1541 hardware enhancement. As many know, the NMOS-compatible 65C22N is not available in such a package, but only as PLCC and DIP.
I know about the IRQ line difference and how that can be addressed with a diode, but the rest of the differences I am less sure about:
* I see the -S has bus holding on most IO pins. Would that cause issues if used in an NMOS design?
* Obviously, the Vih is 4V as opposed to 2V. I know I need to check all input lines of the VIA for any issue,s but is there more I need to check?
Jim
65C22S in NMOS design
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65C22S in NMOS design
I can't see the bus-holding devices doing anything but good. It's a simple but ingenious design.
For inputs, you might need pull-ups, either passive (resistor) or active (current-mirror, which is faster without undue loading) to get valid logic-1 states from NMOS or LSTTL outputs. If the data sheet I'm looking at is valid, the 22N has, more or less, 74LS-type input loads on the port pins. The 22S has true CMOS inputs whose only input current is just the negligible CMOS input leakage, something that can be very important for some applications.
According to my experiments, the S version of the '22 has very strong outputs—much, much stronger than the data sheet lets on. I doubt that would cause any problems though.
For inputs, you might need pull-ups, either passive (resistor) or active (current-mirror, which is faster without undue loading) to get valid logic-1 states from NMOS or LSTTL outputs. If the data sheet I'm looking at is valid, the 22N has, more or less, 74LS-type input loads on the port pins. The 22S has true CMOS inputs whose only input current is just the negligible CMOS input leakage, something that can be very important for some applications.
According to my experiments, the S version of the '22 has very strong outputs—much, much stronger than the data sheet lets on. I doubt that would cause any problems though.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: 65C22S in NMOS design
I wonder if passive pullups on the CMOS part would be fast enough on a 1-2MHz application... Current mirrors would be nicer, but could add significantly to the parts quantity and/or board real estate.
Jim
Jim
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: 65C22S in NMOS design
I expect there would be no problem, but I would have to experiment. It will come up fast to about 2.5V, a little slower to NMOS's and 74LS's maximum output voltage of what, maybe 3.5V?, and most slowly beyond that. IOW, a passive pull-up is not working alone until the voltage gets to about 1.5V below Vcc, and in fact is only really needed to finish up the job. (You already knew that though.)
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: 65C22S in NMOS design
Are we talking about converters on the '22s interface to the micro, or the external-facing interface?
Either way, level shifting ICs are readily available, which handle 8 (or more) signals in one chip.
Either way, level shifting ICs are readily available, which handle 8 (or more) signals in one chip.
Re: 65C22S in NMOS design
A PLCC is pretty compact, so it strikes me there's not much space saving by going to a QFP instead. But that's for you to judge.
Just remember that use of the -S part has different implications for the Port A and Port B lines than it does for the lines of the Bus Interface.
In all cases the -S part's bus-hold feature will tend to weakly pull a high-ish line all the way high, and tend to weakly pull a low-ish line all the way low. For the bus lines I don't see that creating a problem. But the 1541 circuitry may rely on the assumption (valid for -N and vintage VIA's) that port lines which are configured as inputs will invariably try to pull themselves high (and thus can be driven by an open-collector gate or by a switch to ground). Dunno if that applies to 1541, but you'll definitely need external pullups for any port input lines that rely on that assumption.
-- Jeff
Just remember that use of the -S part has different implications for the Port A and Port B lines than it does for the lines of the Bus Interface.
In all cases the -S part's bus-hold feature will tend to weakly pull a high-ish line all the way high, and tend to weakly pull a low-ish line all the way low. For the bus lines I don't see that creating a problem. But the 1541 circuitry may rely on the assumption (valid for -N and vintage VIA's) that port lines which are configured as inputs will invariably try to pull themselves high (and thus can be driven by an open-collector gate or by a switch to ground). Dunno if that applies to 1541, but you'll definitely need external pullups for any port input lines that rely on that assumption.
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: 65C22S in NMOS design
GARTHWILSON wrote:
I expect there would be no problem, but I would have to experiment. It will come up fast to about 2.5V, a little slower to NMOS's and 74LS's maximum output voltage of what, maybe 3.5V?, and most slowly beyond that. IOW, a passive pull-up is not working alone until the voltage gets to about 1.5V below Vcc, and in fact is only really needed to finish up the job. (You already knew that though.)
Jim
Re: 65C22S in NMOS design
BigEd wrote:
Are we talking about converters on the '22s interface to the micro, or the external-facing interface?
Either way, level shifting ICs are readily available, which handle 8 (or more) signals in one chip.
Either way, level shifting ICs are readily available, which handle 8 (or more) signals in one chip.
As I noted for current mirrors, level shifters are nice...
Quote:
but could add significantly to the parts quantity and/or board real estate.
Jim
Re: 65C22S in NMOS design
Dr Jefyll wrote:
A PLCC is pretty compact, so it strikes me there's not much space saving by going to a QFP instead. But that's for you to judge.
Just remember that use of the -S part has different implications for the Port A and Port B lines than it does for the lines of the Bus Interface.
In all cases the -S part's bus-hold feature will tend to weakly pull a high-ish line all the way high, and tend to weakly pull a low-ish line all the way low. For the bus lines I don't see that creating a problem. But the 1541 circuitry may rely on the assumption (valid for -N and vintage VIA's) that port lines which are configured as inputs will invariably try to pull themselves high (and thus can be driven by an open-collector gate or by a switch to ground). Dunno if that applies to 1541, but you'll definitely need external pullups for any port input lines that rely on that assumption.
-- Jeff
Just remember that use of the -S part has different implications for the Port A and Port B lines than it does for the lines of the Bus Interface.
In all cases the -S part's bus-hold feature will tend to weakly pull a high-ish line all the way high, and tend to weakly pull a low-ish line all the way low. For the bus lines I don't see that creating a problem. But the 1541 circuitry may rely on the assumption (valid for -N and vintage VIA's) that port lines which are configured as inputs will invariably try to pull themselves high (and thus can be driven by an open-collector gate or by a switch to ground). Dunno if that applies to 1541, but you'll definitely need external pullups for any port input lines that rely on that assumption.
-- Jeff
And, as for pullups, that was my first thought, but I am concerned about rise time.