WDC 65C02 R/W Pin apparently not toggling
Posted: Fri Feb 07, 2020 7:45 am
Hi All, like a number of you guys, I am also playing along to Ben Eaters excellent series on the 6502. I have it created and working on a breadboard with the LCD displaying "Hello World!"... so far so good. So keen have I been to keep going, I have also added the SRAM chip and wired in accordance with his Schematic (hopefully attached below..), and have verified that ALL signals go to the right places and are wired correctly. BUT, with his new code to use a Subroutine to do the Reading and writing of the Data to the 6522 VIA, this code doesnt work. It would seem that Data ISNT being written to the SRAM... (I have "tested" the SRAM in the EEPROM Programmer, TL866 II Plus, and it reports no issues. This post is already getting too long, so currently I am trying to TRoubleshoot the signals are working in the right order and at the right time, BUT, when using my Scope to monitor the Chip Select signals and the OE signals, all works fine, but when using it to Monitor the R/W line, it is permanently LOW (According to the scope..) and doesnt change, apart from a few VERY short Spikes every now and then (Assuming its when the CPU is trying to Raise the line for a READ....) Its all VERY odd, as the code that drives the LCD is working fine when using Ben's LONG version of code (IE everything is done, In-line repeteively, no SUbroutine jumps), which I am assuming has to Read and write to the VIA chip.... Even disconnecting the R/W line from EVERYTHING, and letting the code simply run, I cant see the R/W line going up and down ?
Should I be able to see this line going up and down? If so, during a Write cycle, what sort of "pulse width" should I see? I am beggining the think I have a dead R/W line on the WDC 65C02 chip... but would welcome anyones comments and suggestions. I have a couple of new chips on order from Mouser, but its driving me crazy (although I am learning a HUGE ammount, so very heppy
)
Forgot to mention, the Clock source shown in this schematic ISNT the one I'm using, I am using Ben's 555 based clock generator with the Single Step feature... AND, I have tried a 2nd CPU that I ordered from the same source, and that behaves in the same way... I have read all the stuff about dodgy chips etc etc....
Should I be able to see this line going up and down? If so, during a Write cycle, what sort of "pulse width" should I see? I am beggining the think I have a dead R/W line on the WDC 65C02 chip... but would welcome anyones comments and suggestions. I have a couple of new chips on order from Mouser, but its driving me crazy (although I am learning a HUGE ammount, so very heppy
Forgot to mention, the Clock source shown in this schematic ISNT the one I'm using, I am using Ben's 555 based clock generator with the Single Step feature... AND, I have tried a 2nd CPU that I ordered from the same source, and that behaves in the same way... I have read all the stuff about dodgy chips etc etc....