The Z84C3008PEG is Zilog's 8 MHz CMOS Z80 CTC in a 28-pin through-hole PDIP. Designers working with Z80-family systems usually need four answers before they commit to a part: how fast a system clock it accepts, what timer intervals it can generate, how its interrupts fit into a daisy chain, and what must be verified on the board. This article ties the device's confirmed characteristics to those decisions. It covers interval calculation, channel programming, interrupt behavior and the checks to run before using or replacing the part.

Z84C3008PEG Zilog
The Z84C3008PEG is a Zilog counter/timer circuit (CTC) from the Z8430/Z84C30 Z80 CTC family. It is the CMOS device in the 8 MHz speed grade, supplied in a 28-pin plastic DIP (0.600-inch, 15.24 mm body width) for through-hole mounting. The base product number is Z84C3008.
The CTC offloads timing and counting from the Z80 CPU. Four independent channels can count external events, generate intervals, or supply a clock rate, so software timing loops are not needed.
| Item | Value |
|---|---|
| Manufacturer | Zilog |
| Device type | Z80 CTC, four-channel counter/timer |
| Clock range (Z84C3008 grade) | DC to 8 MHz |
| Supply voltage | 4.5 V to 5.5 V |
| Listed supply current | 10 mA |
| Package | 28-pin PDIP, 0.600-inch (15.24 mm) |
| Mounting | Through hole |
| Moisture sensitivity level | MSL 1 (unlimited) |
The part has been listed with a Last Time Buy product status. Confirm current lifecycle status and supply conditions before using it in a new design. Also confirm the operating temperature range and the conditions behind the 10 mA supply current figure against your own environmental and power requirements.
Four independently programmable channels. Each channel has a readable down-counter. The CPU can read the remaining count at any time through an I/O read at the channel's port address, without disturbing the count.
Selectable 16 or 256 prescaler. In timer mode the prescaler divides the system clock before it reaches the down-counter. This sets the trade-off between resolution and maximum interval.
Automatic reload. The down-counter reloads its time constant at zero count and keeps counting, so periodic events need no software intervention.
Selectable trigger edge. Each channel can be configured for a positive or negative CLK/TRG edge.
Zero Count/Timeout outputs on three channels. Channels 0 to 2 provide a ZC/TO output pulse at zero count. These outputs can drive Darlington transistors. Channel 3 has no ZC/TO pin, so its only output is an interrupt request.
Direct Z80 CPU and Z80 SIO connection. The CTC connects to both without extra logic, and it can generate baud rates for the SIO. Larger systems may still need address decoders and buffers.
Z80 daisy-chain interrupts. Interrupts are fully vectored and prioritized. The CTC can also act as an interrupt controller.
Simple programming. Each channel needs two bytes, plus a third interrupt vector byte when interrupts are used.
CMOS technology. The CMOS family targets designs that need low power consumption. The device runs from a single +5 V supply and the standard single-phase Z80 system clock.
The confirmed functions suggest the following evaluation areas. Each depends on the clock, timing and interrupt checks described later in this article.
Event counting. In counter mode, every active edge on a CLK/TRG input decrements the down-counter. A zero-count output or interrupt then flags that a programmed number of events has occurred.
Interval timing and periodic ticks. Timer mode with automatic reload provides repeating intervals for scheduling, polling or timeout functions, without CPU timing loops.
General clock-rate generation. The ZC/TO pulse of channels 0 to 2 can be used as a divided clock.
Baud-rate clocks for a Z80 SIO. Because the CTC connects directly to the SIO, a ZC/TO output can supply the serial clock. Only channels 0 to 2 can do this, because channel 3 has no ZC/TO output. The required divide ratio depends on the SIO clock mode and the target baud rate.
Interrupt expansion. Four prioritized, vectored interrupt sources can be added through the CTC's place in the daisy chain, even when the counters themselves are not needed.
Driving discrete loads. The Darlington-capable ZC/TO outputs of channels 0 to 2 can support simple external drive stages. Verify the output drive specification against the actual load.
These are evaluation directions based on device functions. They are not application-level validations of this part number.
In timer mode the interval is the product of three terms:
A time constant byte of 00h is interpreted as 256. The minimum timer resolution is 16 clock periods. The maximum interval is 256 × 256 clock periods.

Z84C3008PEG Timer-Mode Interval Path from System Clock to Output
The table below applies the formula to an assumed 8 MHz system clock (125 ns period). It is a calculation, not a measured result.
| Prescaler | Resolution (T = 1) | Maximum interval (T = 256) |
|---|---|---|
| 16 | 2 µs | 512 µs |
| 256 | 32 µs | 8.192 ms |
The design consequence is that the interval is always an integer multiple of the prescaled clock period. For example, an exact 500 µs interval at 8 MHz uses prescaler 16 and T = 250. An exact 1 ms interval is not reachable with a single channel at that clock. Prescaler 256 with T = 31 gives 0.992 ms, and T = 32 gives 1.024 ms. If your timebase needs a specific value, choose the system clock with that granularity in mind or cascade channels.
For intervals beyond one channel's range, timers can be cascaded. In counter mode, counts above 256 also require cascading. When using the ZC/TO output of one channel to clock another, remember that channel 3 cannot be the source.
In counter mode each active CLK/TRG edge decrements the count, and the decrement is synchronized to the system clock. The trigger period must be at least twice the clock period.
Each channel is programmed through the I/O port selected by CS1 and CS0 (00 = channel 0, 01 = channel 1, 10 = channel 2, 11 = channel 3). These inputs are usually wired to A0 and A1. The channel control word is defined as follows.
| Bit | Function |
|---|---|
| D7 | 1 = interrupt enabled, 0 = disabled |
| D6 | 0 = timer mode, 1 = counter mode |
| D5 | Prescaler, timer mode only: 0 = 16, 1 = 256 |
| D4 | CLK/TRG edge: 0 = falling, 1 = rising |
| D3 | Timer trigger, timer mode only: 0 = automatic when time constant is loaded, 1 = CLK/TRG pulse starts timer |
| D2 | 1 = time constant word follows |
| D1 | 1 = software reset |
| D0 | 1 = control word, 0 = interrupt vector word |
As an illustration built from these bit definitions, a timer-mode channel with prescaler 16, automatic trigger and interrupt enabled uses control word 85h (10000101b). The next write to the same channel carries the time constant, for example FAh (250).

Z84C3008PEG Channel Programming Sequence from Control Word to Timer Start
Several behaviors affect firmware correctness:
A time constant must follow a control word with D2 set. A channel does not operate without a time constant. The only way to write one is through a control word with D2 set.
Timer start timing depends on trigger mode. With automatic trigger, the timer starts on the rising edge of the second clock pulse (T2) of the machine cycle after the write. With CLK/TRG triggering, the first decrement follows the active edge by one clock cycle if the minimum setup time to the clock's rising edge is met. Otherwise it is delayed by one more clock cycle.
Changing the trigger slope during operation acts as an active edge. In timer mode that starts a pending timer. In counter mode it decrements the counter.
Reprogramming a running channel is deferred. If new control and time constant words are written during a count, the channel counts to zero before loading the new constant.
Hardware reset clears everything. It terminates all down-counts and disables all interrupts. ZC/TO and interrupt outputs go inactive, IEO follows IEI, and D0 to D7 go to high impedance. All channels must then be fully reprogrammed.
Software reset stops one channel. With D1 and D2 both set, the addressed channel stops until a new time constant arrives.
The CTC follows the standard Z80 interrupt protocol, and the CPU must be in interrupt mode 2. Within the CTC, channel 0 has the highest priority and channel 3 the lowest. A channel being serviced cannot be interrupted by a lower-priority channel or device, but higher-priority ones can interrupt it.
Vector construction. The firmware writes the vector word to the channel 0 port, with D0 equal to 0 to distinguish it from a control word. Only the five most significant bits are user-supplied. The CTC inserts two bits identifying the requesting channel, and the low bit is always zero. In practice the four channel vectors occupy a contiguous, evenly spaced block, so interrupt table placement must account for that spacing.
Daisy-chain wiring. IEI and IEO link the CTC to neighboring devices. The device closest to the +5 V end of the chain has the highest priority. While a CTC interrupt is being serviced or pending, IEO is held low to block lower-priority devices. If IEI goes low, the CTC gives up priority.
Acknowledge and return. The CPU acknowledges with M1 and IORQ. The CTC then places its vector on the data bus if IEI is high and a channel has requested service. Two wait states are inserted automatically to let the chain settle. At the end of the routine, the RETI instruction (ED 4D) is decoded by the CTC to release the daisy chain. Routines must therefore end with RETI rather than a plain return, or the chain will not be released correctly.

Z84C3008PEG Daisy-Chain Interrupt Priority and RETI Release
INT is an open-drain, active-low output. On a shared interrupt line, make sure the system provides the pull-up the bus design requires.
The CTC connects to the Z80 through D0 to D7, CE, CS0 and CS1, IORQ, RD, M1, RESET, CLK and the interrupt chain signals. CE is active low and is usually decoded from the eight least significant address bits for the four I/O port addresses.
Two interface details commonly cause errors:
There is no write input. The CTC generates its internal write from the inverse of RD when IORQ and CE are active. M1 must be high to distinguish a normal I/O cycle from an interrupt acknowledge. Do not add a WR connection expecting it to be used.
CLK/TRG inputs are asynchronous. Counting is synchronized to CLK, so a trigger edge that arrives too close to the next rising clock edge is handled one clock cycle later. The same lead-time rule applies to timer starts and counter decrements.
Before release, check the following items against the electrical and AC characteristics for the 8 MHz grade and your operating conditions:
CLK frequency, high and low times and edge quality at the CTC pin.
Setup and hold of CE, CS1, CS0, IORQ, RD and M1 relative to the clock.
CLK/TRG minimum pulse width, minimum lead time to the rising clock edge, and the minimum trigger period.
IEI to IEO propagation across the full daisy chain, including added wait states if the chain is long.
Output loading on ZC/TO and INT, including the Darlington drive case if used.
Reset sequencing, so firmware reprograms every channel after hardware reset.
The family defines these clock ranges:
| Technology | Part number | Clock |
|---|---|---|
| NMOS | Z0843004 | 4 MHz |
| NMOS | Z0843006 | 6.17 MHz |
| CMOS | Z84C3006 | DC to 6.17 MHz |
| CMOS | Z84C3008 | DC to 8 MHz |
| CMOS | Z84C3010 | DC to 10 MHz |
The Z84C3008 grade covers CPU clocks up to 8 MHz. A system clock above that needs the 10 MHz grade, subject to verification. The CMOS grades are specified from DC, while the NMOS versions are listed with fixed ratings. The NMOS version targets cost-sensitive designs, and the CMOS version targets low-power designs.
The family is offered in 28-pin DIP, 44-pin plastic chip carrier and 44-pin LQFP, with LQFP limited to CMOS versions. The Z84C3008PEG is the 28-pin PDIP version. Do not assume the other packages are available at the 8 MHz grade under this ordering code.
For replacement or substitution, keep these categories separate:
Functional similarity. Other CTC family members share the architecture and programming model.
Parameter similarity. Speed grade, supply range and current differ between NMOS and CMOS versions and between grades.
Pin compatibility. Within the same package, confirm pin assignments from the pin diagram of the exact part.
Verified drop-in replacement. This requires verification of pin assignments, electrical requirements, AC timing, interrupt behavior and the system clock.
The 28-pin DIP has no moisture sensitivity restriction at MSL 1. Also confirm lifecycle status and purchasing conditions at the time of purchase, given the Last Time Buy listing.

Z84C3008PEG Replacement Evaluation Categories and Drop-In Verification