Hi guys
I've working on a memory board redesign circuit which makes use of a signal derived from a 2 MHz NMOS 6502's RWB signal.
I need to have a way for the operator to disable the ability to write without introducing a prop delay on the RWB signal itself (otherwise I'd just an OR gate or similar).
Here's what I've come up with (see below).
Q1 should remove the prop delay between R/W in and R/W out when R/W transits high-low or low-high.
IC1 inverts SW1 using a Schmitt trigger, so deals with debouncing (along with R1 & C1).
R2 serves to pull R/W out up if Q1 is not enabled. Not sure if the value of 3K3 is suitable though?
RWB enable/disable switch
Re: RWB enable/disable switch
And why don't you replace the transistor with a jumper?
Re: RWB enable/disable switch
gbm wrote:
And why don't you replace the transistor with a jumper?
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: RWB enable/disable switch
Your BJT is not configured right for the application. On the back of an envelope, I worked through a couple of different ways to do it, then decided you'd be much better off using an analog switch like a 74HC4066.
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: RWB enable/disable switch
If SW1 is not linked, everything is fine and RWB is held high.
However, if SW1 is linked, Q1 is enabled and RWB, although you can see it try to change, enever dips below 4v for lows and 4.5v for highs/
Tried 2K2 to 4K4 pullup for R2 - makes no difference.
From what I can find out, fast signals should be ok with any resistor in this range, so it's a bit odd. Might be Q1 causing an issue?
However, if SW1 is linked, Q1 is enabled and RWB, although you can see it try to change, enever dips below 4v for lows and 4.5v for highs/
Tried 2K2 to 4K4 pullup for R2 - makes no difference.
From what I can find out, fast signals should be ok with any resistor in this range, so it's a bit odd. Might be Q1 causing an issue?
Re: RWB enable/disable switch
GARTHWILSON wrote:
Your BJT is not configured right for the application. On the back of an envelope, I worked through a couple of different ways to do it, then decided you'd be much better off using an analog switch like a 74HC4066.
Is it that Q1 isn't current limited which is causing the issue? Can you advise how it's misconfigured?
In the meantime, I'll take a look at 74HC4066, although I might not able to used it as the PCB real estate cannot be expanded and there's virtually none left. Might be ok if I lose the inverter.
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: RWB enable/disable switch
banedon wrote:
GARTHWILSON wrote:
Your BJT is not configured right for the application. On the back of an envelope, I worked through a couple of different ways to do it, then decided you'd be much better off using an analog switch like a 74HC4066.
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: RWB enable/disable switch
Many thanks for explaining and I think I understand (at least enough to see why my circuit doesn't work).
I've also been looking at MOSFETS. So far, from what I undestand (and I might be wrong), the enable/disable would connect to the Gate, the Source the ground and Drain to the load. Otherwise, we need a much higher voltage that the RWB line - as that runs close to VCC when high, not possible.
I.e. similar to the BJT, from what I picked up from yuor explanation.
Having the load before the MOSFET isn't really do-able for RAM, which leaves us back with you original recommendation: 74HCT4066
Unfortunately, I have no additional PCB space to cram another IC in unless I do a big redesign, so it looks like I might have to ditch this switch option. I'll have a think on it when my brain isn't quite so tired.
Thanks for you help with this - appreciated
I've also been looking at MOSFETS. So far, from what I undestand (and I might be wrong), the enable/disable would connect to the Gate, the Source the ground and Drain to the load. Otherwise, we need a much higher voltage that the RWB line - as that runs close to VCC when high, not possible.
I.e. similar to the BJT, from what I picked up from yuor explanation.
Having the load before the MOSFET isn't really do-able for RAM, which leaves us back with you original recommendation: 74HCT4066
Unfortunately, I have no additional PCB space to cram another IC in unless I do a big redesign, so it looks like I might have to ditch this switch option. I'll have a think on it when my brain isn't quite so tired.
Thanks for you help with this - appreciated
-
SpaceCoaster
- Posts: 33
- Joined: 11 Apr 2019
Re: RWB enable/disable switch
Single channel versions of analog switches are available. Surface mount but not crazy small so not much larger than a BJT.
For instance M74VHC1GT66DFT2G and many others https://mou.sr/3KSr3si
For instance M74VHC1GT66DFT2G and many others https://mou.sr/3KSr3si