Re: Put 2 YM2149 into the ST
Posted: 04 Nov 2019 14:57
I think it may be possible, despite delays.
The YM goes tri-state whenever there is invalid address on the high bits (i.e. different from %0000xxxx)
Scenario:
The 68k sets bdir & bc1 & address %0001xxxx
YM0 ignores this, as address is not 0000
YM1, because of delay on the D4 line, also sees 0001, so ignores.
then D4 goes low (gets inverted by our additional circuitry) and YM1 sees 0000 and that's a valid address/bdir/bc1 combination, and so it latches the register address and awaits the next bus change for the data.
now 68k sets bc1 low and puts data on the bus.
this is the interesting part:
bc1 low is immediately available on YM1, but D4 may have a short delay. Will the YM now store the data immediately into its running register or wait until the bus cycle is finished (and D4 has stabilized)
I'm not a geniouns in reding data sheets, the timing is specified.
But it's a slow chip for s slow 8 bit system. Is it slow enough to not even see the latency on D4?
When does the YM decide that its data is good? Maybe only after Tdw is over? That would give plenty of time, and so we are fine.
times are: ______________________________________________________ | min | typical | max | units
The YM goes tri-state whenever there is invalid address on the high bits (i.e. different from %0000xxxx)
Scenario:
The 68k sets bdir & bc1 & address %0001xxxx
YM0 ignores this, as address is not 0000
YM1, because of delay on the D4 line, also sees 0001, so ignores.
then D4 goes low (gets inverted by our additional circuitry) and YM1 sees 0000 and that's a valid address/bdir/bc1 combination, and so it latches the register address and awaits the next bus change for the data.
now 68k sets bc1 low and puts data on the bus.
this is the interesting part:
bc1 low is immediately available on YM1, but D4 may have a short delay. Will the YM now store the data immediately into its running register or wait until the bus cycle is finished (and D4 has stabilized)
I'm not a geniouns in reding data sheets, the timing is specified.
But it's a slow chip for s slow 8 bit system. Is it slow enough to not even see the latency on D4?
When does the YM decide that its data is good? Maybe only after Tdw is over? That would give plenty of time, and so we are fine.
times are: ______________________________________________________ | min | typical | max | units