CZ80PIO Megafunction Datasheet
register specifies which of the eight data bits in
the port are to be outputs and enables these
bits; the remaining bits are inputs. The mask
register specifies which of the bits in the port
are masked.
Pin Description
Name
Type Description
Clock
clk
In System Clock
Interface to Processor
Control logic
data_tri Out Tristate controller for buffer for data
bus
The control logic consists of the CPU bus
interface logic, interrupt control logic and internal
control logic. The CPU bus interface logic
interfaces the CZ80PIO directly to the CZ80CPU,
so no external logic is necessary. For large
systems, however, address decoders and/or
buffers may be necessary. The interrupt control
logic section handles all CPU interrupt protocol
for nested-priority interrupt structures. Any
device's physical location in a daisy-chain
configuration determines its priority. Two lines
(IEO and IEI) are provided in each PIO to form
this daisy chain. The device closest to the CPU
has the highest priority. Within a PIO, port A
interrupts have higher priority then those of port
B. In the byte input, byte output or bi-directional
modes, an interrupt can be generated whenever
the peripheral requests a new byte transfer. In
the bit control mode, an interrupt can be
generated when the peripheral status matches a
programmed value.
data_i
data_o
rd_n
iorq_n
ce_n
In Data bus input
Out Data bus output:
In Read Cycle Status
In Input / Output Request
In Chip Enable
cdselect
In Control / Data select
portselect In Port B / A select
m1_n In Machine Cycle One
Interrupt Service Routine
int_n
iei
In Interrupt Request
In Interrupt Enable Input
Out Interrupt Enable Output
ieo
Control
porta_tri In Tristate controller for buffer for data
bus
porta_i
porta_o Out Port B bus output
portb_tri In Tristate controller for buffer for data
bus
In Port B bus input
portb_i
In Port B bus input
portb_o Out Port B bus output
ardy
brdy
astb_n
Out Register A ready
Out Register B ready
In Port A strobe pulse from peripheral
device
bstb_n
In Port B strobe pulse from peripheral
device
Functional Description
The CZ80PIO megafunction is partitioned into
modules as shown in figure 1 and described
below.
Port Logic
Each port contains separate input and output
registers, handshake control logic and the
control registers. All data transfers between the
peripheral unit and the CPU use the data input
and output registers. The handshake logic
associated with each port controls the data
transfers through the input and the output
registers. The mode control register (two bits)
selects one of the four programmable operating
modes. The Bit Control mode (mode 3) uses the
remaining registers. The input/output control
CAST, Inc.
Page 2