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

Infrared mains remote control Switch
Component Signature for Oscilloscope
Arduino Barometric Pressure WebServer
1.5 Watt FM Transmitter
27mhz transmitter circuit
usb powered mobile phone battery
LM56 diagram of Circuit of the Thermostat project
games timer 2
Schematic effect
TRIAC Switch To Control High-Voltage Devices
Toyota MR2 Power Steering System
TDA2009 single power amplifier circuit diagram
Tape monitor the direction of movement