sburrow wrote:
Dr Jefyll wrote:
Ideally you'd have 8 LED's for the data bus and 16 for the address, but last time I did this I omitted the LED's for A8-A15.
Jeff, thank you. I was thinking of doing this, but it got shot down for some reason or another. I personally think it's super helpful, but I'm new to this whole thing, so maybe I'm just weird. I do think it would be most beneficial in a single-step mode for sure.
That was KM:
Quote:
having LEDs on the databus is of little value, same for a speaker on an address line. Adding single step... is this really thought thru?
It's another good lesson I think - everyone here has a different experience and different opinions. Many of the pieces of advice you get will be based on opinion or on a judgement call. You have to navigate that as best you can. At some point you need to try some things out, you need to build something and you will need to debug what you've built. If your design is right, you just need to build it correctly. If the design is flawed, you'll have to revisit it.
Eventually, you get to the point of running code, and you'll find you need to debug the code too.
There's no substitute for being careful at every step: checking what you've done, thinking through what it means. If something is puzzling you, make notes, and make one change at a time. Start simple.
Don't be tempted to just throw ideas out here to see what the feedback is - that's not very efficient. You'll do much better if you first review your ideas and try them out.
When you're building a system and debugging it, what you're really doing is building a mental model of it, so you understand what it's doing and why. If you're finding it hard going, that might be because it's not simple enough.
(I'm not sure if I've ever single-stepped - it's possible I have, on a trainer board. What I certainly have done is written out code on paper and single-stepped it by hand. That needs very little equipment! It's a very valuable thing to do.)