cool wrote:
@John West
>> The other thing that's missing is A15. As it is, that circuit will write trigger the flip-flops on any access to any address matching $Fxxx or $7xxx. You're going to want ROM somewhere in there, and you don't want your LEDs to change whenever it is read. <<
Thanks for your advice, but you can't know this (that's standing somewhere in my blog in German). That's the way I want it. My ROM is WE always on high, so write protected. I drive the concept, that writing is only be allowed to the SRAM (lower 32 KB).
@cool - John West is reminding you that the 374's will get clock pulses for read cycles as well as writes cycles. Your circuit only looks at the address, and it ignores the CPU's R/W signal.
This is an unusual way to control the 374's, but it's alright if you only write to them and never read from them. I assumed you were aware of this.
But I overlooked the other point John is making. Simply fetching code bytes from your ROM is a read operation, and your address decoding is such that even those reads might trigger the 374's. That's why A15 would make a difference -- to tell your circuit not to trigger during a ROM access. But R/W is probably a better way to prevent that problem.
I see how you're using A2, A1, A0, and I think you understand some combinations will actuate more than one 374 (for example if A2,1,0 = 111 then all three 374's will get actuated). It's OK to do it that way as long as you're careful not to do the wrong thing.
But your circuit absolutely needs to use the clock (Phi2). It also should use R/W or A15 (or both); otherwise it will be
very tricky to avoid doing the wrong thing (ie, avoid reading code bytes from addresses that activate both the ROM and the 374's).
Please plan your changes accordingly. The circuit needs a serious re-think. If the clock is the only thing you change then the circuit will remain a booby trap, and you'll need to watch your step VERY carefully.
To fix the problem properly, have a look at some of the suggestions in Garth's primer. Have fun and keep us posted,
Jeff
_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html