Michael Black said:
But even then, why in the world would nayone need a CPU to test a few
simple gates?
They need a CPU because solutions not using a CPU can be expected to
score a big fat zero when handed in as project work for a course in
microprocessors.
It's an excercise, nothing more. Step two after flashing an LED. Perhaps
next term/semester they make something really difficult and exciting,
but you gotta learn the tools, techniques and tricks somehow.
To the OP:
Apologies if this is overly basic, I'm assuming you just don't know
where to start.
I assume the 68230 and the logic chips you will be testing are both
running off the same voltage and have compatible IO levels, so can be
connected directly. Connect the logic chip to power and to your 68230.
Make a note of which pins connect to which. That is all the circuit you
need (all the additional circuitry to do this anyway - you still need
the 68k, clock source, power, programming interface...). You can now set
the inputs of the logic and read its outputs all from software, by
controlling the 68230's IO pins. I expect they chose testing logic chips
precisely because they are so easy to interface with microcontrollers.
You need to provide known input (input to the logic, output from the
68230) and compare the output with the expected output. Both inputs of
an AND high should make the output high, etc. Testing a flip-flop is
slightly more involved, as you have state to consider too. Still, the
principle is the same.
Of course, you real code will do that for all the gates on a logic chip,
it'll handle a few different kinds of logic chip, there will be a bunch
of code to handle your 7-segment displays...
Tim