Open collector wired or chip select
Open collector wired or chip select
I'm looking at options for address decoding and came up with a question, would appreciate any comment.
Say I used an n to m decoder (e.g. 74LS156), with open collector outputs, but I wanted the decoding to be asymmetric (e.g. to get blocks of 8k, 8k, and 16k, out of 32k), would it be practical to do a wired-or with pull up resistor to combine some decoder outputs to use as a chip select?
Very hypothetical right now, but for background: I just bought a stack of Commodore 1541 disk drives, which I'll borrow the 6502's and 6522's out of, so I believe the context will be 1MHz NMOS stuff.
Cheers!
(And on forum etiquette: should I have one topic for my project, or start a new topic for each distinct question?)
Say I used an n to m decoder (e.g. 74LS156), with open collector outputs, but I wanted the decoding to be asymmetric (e.g. to get blocks of 8k, 8k, and 16k, out of 32k), would it be practical to do a wired-or with pull up resistor to combine some decoder outputs to use as a chip select?
Very hypothetical right now, but for background: I just bought a stack of Commodore 1541 disk drives, which I'll borrow the 6502's and 6522's out of, so I believe the context will be 1MHz NMOS stuff.
Cheers!
(And on forum etiquette: should I have one topic for my project, or start a new topic for each distinct question?)
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Open collector wired or chip select
pzkpfw wrote:
I'm looking at options for address decoding and came up with a question, would appreciate any comment.
Say I used an n to m decoder (e.g. 74LS156), with open collector outputs, but I wanted the decoding to be asymmetric (e.g. to get blocks of 8k, 8k, and 16k, out of 32k), would it be practical to do a wired-or with pull up resistor to combine some decoder outputs to use as a chip select?
Say I used an n to m decoder (e.g. 74LS156), with open collector outputs, but I wanted the decoding to be asymmetric (e.g. to get blocks of 8k, 8k, and 16k, out of 32k), would it be practical to do a wired-or with pull up resistor to combine some decoder outputs to use as a chip select?
Quote:
(And on forum etiquette: should I have one topic for my project, or start a new topic for each distinct question?)
x86? We ain't got no x86. We don't NEED no stinking x86!
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Open collector wired or chip select
Welcome!
As BDD said, open-collector outputs are extremely slow to rise back to a logic 1. Take for example a 3.3K resistor pulling up a line that has only 22pF capacitance on it, including all the inputs, traces, and sockets. It will have a time constant of over 72ns!!!
Be sure you go through the 6502 primer, at http://wilsonminesco.com/6502primer/ .
As BDD said, open-collector outputs are extremely slow to rise back to a logic 1. Take for example a 3.3K resistor pulling up a line that has only 22pF capacitance on it, including all the inputs, traces, and sockets. It will have a time constant of over 72ns!!!
Be sure you go through the 6502 primer, at http://wilsonminesco.com/6502primer/ .
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: Open collector wired or chip select
Thank you both.
I've been reading a lot (including this forum, and also the primer) before joining, so both of you have already contributed to my thinking.
The HCT comment even predicted one of my next questions.
Now I need to re-check what's available from local (New Zealand) suppliers. Will surely have more questions.
I've been reading a lot (including this forum, and also the primer) before joining, so both of you have already contributed to my thinking.
The HCT comment even predicted one of my next questions.
Now I need to re-check what's available from local (New Zealand) suppliers. Will surely have more questions.
Re: Open collector wired or chip select
Welcome! I would say, it's great to have a (long-running) thread to track project progress, but it's also good, when questions arise which might be interesting to future adventurers, to ask them in a new thread with a good subject line - this forum is a great resource when searching for solutions and ideas, and even posts which are many years old can still be of interest and very useful.
That was a long sentence.
That was a long sentence.
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Open collector wired or chip select
BigEd wrote:
That was a long sentence.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Open collector wired or chip select
Depending on language, you may occasionally see words about as long!
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: Open collector wired or chip select
Ja, das ist richtig!
Then again, there's this:
Donaudampfschiffahrtsgesellschaftskapitän
Then again, there's this:
Donaudampfschiffahrtsgesellschaftskapitän
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
Re: Open collector wired or chip select
Finnish is also rather word-compounding-fond. One example - which is decidedly not the longest! - is "kuumailmapallolentolahjakortti", which means "hot air balloon flight gift certificate".
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: Open collector wired or chip select
How true.... and of course, there's always the fun of reading German technical manuals, where a word can start on one page and end on the next.
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
Re: Open collector wired or chip select
Well, if we're wandering this far, then I give you:
https://www.youtube.com/watch?v=gG62zay3kck
Enjoy!
-Gordon
https://www.youtube.com/watch?v=gG62zay3kck
Enjoy!
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Re: Open collector wired or chip select
Chromatix wrote:
Finnish is also rather word-compounding-fond. One example - which is decidedly not the longest! - is "kuumailmapallolentolahjakortti", which means "hot air balloon flight gift certificate".
Re: Open collector wired or chip select
Nice movie, but it can give you quite of a headache. 
Hmm... an old song from Reinhard Mey:
Einen Antrag auf Erteilung eines Antragsformulars...
For the non_native German speakers:
The Twelve Tasks of Asterix: that part where Asterix just wants to get 'permit document A38' in a multi-storey bureaucratic building.
;---
He receives a registered letter from the "main document administration north" to send them at once
"A request for issuing an application form for confirmation of invalidness of a carbon copy exemplar which validation annotation origins from the acquisition authority for behoof of the submission at the responsible granting office."
//That's also the refrain of the song. Don't know if my translation is correct.
So he muck-rakes together what he happens to have at home in a shoe box: an X-ray picture, a swimming certificate, a parking permit and a laundry voucher.
Then he unwittingly stumbles into an epic quest which leads him through three bureaucratic buildings, asking questions like:
"An application formular that declares invalidness for submission of validity... no, no, stop, that was wrong...
which validity administration is in a state of issuance... oh well, such a sheet, you know where to get it ?"
Hmm... an old song from Reinhard Mey:
Einen Antrag auf Erteilung eines Antragsformulars...
For the non_native German speakers:
The Twelve Tasks of Asterix: that part where Asterix just wants to get 'permit document A38' in a multi-storey bureaucratic building.
;---
He receives a registered letter from the "main document administration north" to send them at once
"A request for issuing an application form for confirmation of invalidness of a carbon copy exemplar which validation annotation origins from the acquisition authority for behoof of the submission at the responsible granting office."
//That's also the refrain of the song. Don't know if my translation is correct.
So he muck-rakes together what he happens to have at home in a shoe box: an X-ray picture, a swimming certificate, a parking permit and a laundry voucher.
Then he unwittingly stumbles into an epic quest which leads him through three bureaucratic buildings, asking questions like:
"An application formular that declares invalidness for submission of validity... no, no, stop, that was wrong...
which validity administration is in a state of issuance... oh well, such a sheet, you know where to get it ?"
Last edited by ttlworks on Mon Aug 26, 2019 10:59 am, edited 1 time in total.
Re: Open collector wired or chip select
Well, we happen to have some native German speakers in the forum, so one could ask for help with the "decoding". 
//Reading German technical manuals requires having a bigger "stack frame" in your backhead,
//because the meaning of a sentence sometimes only could be "evaluated" after reading it to the end.
What really freaks me out is Chinese text:
You have a block of 5 odd looking symbols, and just setting a tiny dot there into a different position could make the difference
between "my dear valued husband" and "hepatitis". //I'm not making this up.
Considering that a lot of the electronics stuff tends to be made in China nowaday,
we should try to get some native Chinese speakers into the forum, but I'm getting _way_ off topic...
;---
For 1..2MHz PHI2, using open collector outputs with pullup resistors would do,
but sooner or later one would want to rise the PHI2 frequency of his 6502 system,
and then the resistance of the pullup resistors would have to become too small for making open collector outputs a practical thing.
//That problem with the ghost interrupts at 20MHz PHI2 with open collector /IRQ pins.
So I would suggest to start with an address decoding logic like in Garth's 6502 primer. //The link is up in the thread.

If things are getting more complicated, there still is 74HCT138\74HCT139.
Note, that the 6522 has a high_active and a low_active chip select input,
creatively making use of this could simplify the address decoding when building a 6502 computer.
//Ed: you could try to use line feeds for breaking long sentences into more digestible chunks, could you ?
//Reading German technical manuals requires having a bigger "stack frame" in your backhead,
//because the meaning of a sentence sometimes only could be "evaluated" after reading it to the end.
What really freaks me out is Chinese text:
You have a block of 5 odd looking symbols, and just setting a tiny dot there into a different position could make the difference
between "my dear valued husband" and "hepatitis". //I'm not making this up.
Considering that a lot of the electronics stuff tends to be made in China nowaday,
we should try to get some native Chinese speakers into the forum, but I'm getting _way_ off topic...
;---
For 1..2MHz PHI2, using open collector outputs with pullup resistors would do,
but sooner or later one would want to rise the PHI2 frequency of his 6502 system,
and then the resistance of the pullup resistors would have to become too small for making open collector outputs a practical thing.
//That problem with the ghost interrupts at 20MHz PHI2 with open collector /IRQ pins.
So I would suggest to start with an address decoding logic like in Garth's 6502 primer. //The link is up in the thread.

If things are getting more complicated, there still is 74HCT138\74HCT139.
Note, that the 6522 has a high_active and a low_active chip select input,
creatively making use of this could simplify the address decoding when building a 6502 computer.
//Ed: you could try to use line feeds for breaking long sentences into more digestible chunks, could you ?