Z-80 Bus Monitor/Debugger


Posted on Nov 4, 2012

Getting microprocessor designs to work is notoriously difficult when both the software and hardware are new. The


Z-80 Bus Monitor/Debugger
Click here to download the full size of the above Circuit.

usual approach is to run test routines that address memory and I/O, but do not rely on their correct functioning. However, miswiring in any part of the circuit usually leads to a misleading jumble of signals that might require a logic analyzer to interpret. This simple circuit will trace the program execution and help point to the problems. Although the circuit shows connections for a Z-80, the circuit can very easily be adapted for any 8-bit microprocessor or with additional circuitry for CPUs of any bus width. The circuit consists of a 5-byte hexadecimal display and comparator, which are wired to a 40-pin IC test clip. The test clip sits over the microprocessor (in this case a Z-80), where it gets power and all the required signals. The address bus and control lines are fed to the comparator, where (by means of switches) a trigger condition can be set. Following the trigger, the next 5 occurrences of either RD or WR will latch the contents of the data bus into the 5 hex displays, each in turn. For example, select address 0000 Ml Rd and reset the CPU. The displays will show the very first instruction fetch, followed by its data and any consequent action. Even details, such as stack writes and subroutine addresses, are included. To trace longer portions of a program the address switches can be incremented to follow the execution path.




Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

VHF Portable "rubber duck" antenna
Rs232c-led-circuit
20Khz-arc-welding-inverter
4 x 25 W Car Amplifier TDA7381 Circuit
Circuit diagram for basic alarm with delayed trigger
3 phase sinewave generator
Telephony DTMF Circuits
SINGLE CHIP DIGITAL VOLTMETER
Thermocouple cold junction compensator AD594 595 centigrade thermometer circuit diagram
AD574 and PC bus interface circuit
555 astable multivibrator circuit diagram
High-rise residential walkway lighting control circuit
DC relay circuit to accelerate the release



Top