First, if you can trim your quotes to just what you're replying to (if you quote anything at all) that would be kind to the readers of this thread. If you're not sure whether you need to quote something or not, err on the side of not quoting; people can always just scroll back to read previous posts in the thread.
Also, inline links are great, but you got the URL syntax slightly wrong; it's "url=..." in brackets, not "url" followed by a close bracket and the URL after that. You can use the Full Editor and Preview buttons to preview your work before posting.
ProfessorCagan wrote:
I do have a meter, and that very same scope. I've already checked some address pins with the meter, but some stay high always, and some stay low always.
Well, the meter generally won't give useful results on a pin that has a changing signal unless it's changing
really slowly, at speed even humans would have no problem seeing. What you will see for a changing signal will depend on the meter, but I would not be surprised to see a pin that's on 75% of the time and off 25% of the time just show up as "5 V" or similar.
Quote:
I also tried to make sure the oscillator was working correctly with the scope, but I couldn't get anything out of it.
Ah! Well, that could be because you're having difficulty with the 'scope, or it could be because your oscillator isn't working. That would definitely be step 1 to work out; no amount of debugging on the 6502 will help if it's not getting a clock signal.
You might start by checking to see if your 'scope has a test point that generates a signal (typically 1 kHz). Most do, as it's necessary to calibrate the probe. If it does, you want to start by getting that working, and playing with the horizontal (time base), vertical (voltage level) and maybe trigger settings a bit so that you know in what direction you need to twiddle those to display a 1 MHz 5 V clock waveform on the screen.
ProfessorCagan wrote:
I did try making a NOP, and I think I did it right
if this image is anything to go by.That's this image, right?
Attachment:
bad-nop-gen.jpg [ 26.64 KiB | Viewed 1286 times ]
No, that is definitely
not the way you want to do it! You should
never connect pins used for ouput directly to Vcc or ground; this can cause a short circuit through the chip trying to drive the pin, potentially accompanied by smoke, fire, and other such exciting things. Though in theory the CPU shoudn't be trying to drive the data pins when it's being driven by a NOP generator, this is difficult to guarantee.
Instead, connect the data pins to Vcc or ground through a resistor. (330 ohms to 1 kohm are typically good values.) These are referred to as "pull-up" (when connected to Vcc) and "pull-down" resistors; they'll bring the line high or low when it's not being driven by another device, but otherwise let that other device bring the line to its preferred value.
Also, it looks as if you've removed the reset button in your current build. You'll want a at least a pull-up on the reset line to keep it high when the system is running, and also you should put back the button or at least mention that you're using a jumper wire manually to bring the reset line low before you start testing, since without a reset signal after power-up the CPU may not start operating.
Quote:
I've also drawn a schematic, please excuse my handwriting.
On a schematic diagram you need not include all the pins, nor put them in the same order that they're used on the chip, and it will be clearer to leave off unused pins. You'll also need either pin names or pin numbers on each connection to an IC on your schematic; it's good to include both as that will help to find errors. I've attached an example, again
from Garth Wilson's site. The IC on the top is a 6522 VIA, but it's also a large 40-pin chip, like the 6502. You'll note that he shows here only the 21 pins (of the 40 total) that are of interest for the particular bit of circuitry he's explaining. (There's, e.g., a whole set of data bus lines that are not shown.)
Attachment:
B1QRG_VIA1_r90.gif [ 148.58 KiB | Viewed 1286 times ]