So I've been testing things out on my new board, and my "6522 VIA Expansion" is just not working.
I think the problem might be a timing issue. Attached is what is going on. My CS1 is always high, thus enabled. My CS2B is low for the first half of the cycle (that is the 6502's PHI2-low), thus always enabled, but there is no clock present there. For the second half of the cycle (that is the 6502's PHI2-high), the CS2B is either high (disabled) or low (enabled). During the second half of the cycle, the clock pulses.
I know this is a weird situation.
From my monitor, I am getting floating values from the VIA, all the time. I write to it, I read from it, just floating values, as if nothing is plugged in. It is likewise not responding to anything else. I've put a scope to some of it, everything seems to work as expected EXCEPT for the R/W line. Strangely, when I probe that line while the VIA is plugged in to it, it freaks out and glitches my system, reading high on the probe. But, I probe the R/W line when the VIA is disconnected entirely and it reads as expected. Maybe that's a clue?
The R/W line is unqualified, the /RES line is working fine, etc etc.
Am I missing something? Will the VIA do anything or even care if it is enabled as long as there is no clock pulse?
Any ideas or suggestions?
Thanks!
EDIT:
Two new findings:
1) The signals from the computer definitely work. I was able to use a '373 and '138 with the existing signals to make simple output bits.
2) I used the '138 with 6502-PHI2 and other signals to clean up the enable signal. I finally got a response from the VIA! But it was momentary and reverted to the floating state almost immediately. The enable line isn't exactly perfect either, I still see it enabling the VIA when it shouldn't, but never during a clock pulse.
Any thoughts are appreciated. Thanks!
EDIT2:
I was looking through the W65C22S datasheet, and I found this little phrase:
"RWB must always be preceded by a proper level on CS1, CS2B."
But then I went to the timing diagrams, and I see R/W changing at the same time as CS1 and CS2B. I am very confused about this.
Chad