barnacle wrote:
Chad, I had wondered about using ph2 to give a delay, but of course it gives a delay at both ends. I have a dot clock running at 14Mhz and change, and I'm playing about with that to generate a delayed ph2 for a 65c22; it would be nice to include the 65c22 if only to simplify PS/2 keyboard and/or mouse interfacing.
The things that were odd for me were the CS lines on the VIA. I actually had /CS2 from my /IO addressing, but CS1 connected directly to PHI2. Thus, the VIA is only activated during the PHI2-high side (thus my video addresses is ignored), and then the clock for the VIA is high, like George and you are talking about, at the second half of the PHI2-high cycle. It's been working great for me (as soon as I figured out I had the wrong databus, ah!). I always seem to find the issues AFTER I get the board printed... Lots of bodges
As to the delay on both ends, I was actually thinking that would be an issue, but it turned out to not in my case. Keeping BE high just a tiny bit longer was actually a good thing, so that the databus on the 6502 could latch. Delaying on the front end wasn't an issue since I was giving RAM and ROM plenty of time anyways. This is all theory, because of course in my case, it didn't matter either way. The delay is SO minimal it isn't even worth discussing at my speed.
Are you using BE to run a video circuit? I feel that implied by some of your responses. And I think we had talked about that some time ago too, right?
Thanks!
Chad