Ax2013 wrote:
Nice progress! I know the feeling
Thanks Axel. I really enjoyed following your build, and it gave me some good ideas about how I could connect the boards together for a debug setup. Very timely to sort that out!
ttlworks wrote:
Nice progress, and the debugging goes faster than I had expected so far.
Yes, it was faster than I was expecting too - a nice surprise.
Quote:
Would suggest to focus on the UART as soon as possible and to try to get a monitor program up and running which makes use of that UART.
With a monitor program, you could get test code from the PC into the computer without burning it into the EEPROM,
what would make debugging a lot more fun.
I agree uploading code would be way more fun. That said, using an EEPROM works quite well also. It only takes a moment to burn one and it's on to the next test. I'm quite spoiled for tools really: Logisim modeling, Kowalski assembler, EEPROM burner, single step clock and diagnostic LEDs on the SBC. If necessary, I can even plug in an actual 65C02 into the SBC to verify the code "in situ" before trying it on the TTL CPU. It all makes for a great environment.
Btw, I did manage to confirm writing to the VIA by running a tight INC loop on the VIA ports:
Code:
loop inc porta
bne loop
inc portb
jmp loop
This bit of code revealed yet another "face-palm" mistake on the PCB where I mixed up the wiring; this time on the inputs to the "T" internal register. (I mean, honestly, ...
). Thankfully, these errors are easy enough to patch. It was nice to see the upper bits of port B blinking nicely once everything was fixed.
Oh, and the whole thing also worked with a 6MHz clock.
That's surprising given all the crazy jumpers in this setup. Not quite the 20MHz target, but it's a start
.
I'm looking forward to further shaking down these boards this weekend.