English
Language : 

Z80 Datasheet, PDF (215/330 Pages) Zilog, Inc. – Z80 CPU PERIPHERALS
< %27 2GTKRJGTCNU
7UGT /CPWCN

after this edge has risen. The input portion of Mode 2 operates identically to
Mode 1. Notice that both Port A and Port B must have their interrupts
enabled to achieve an interrupt-driven, bidirectional transfer.
The peripheral must not gate data onto a port data bus while ASTB is
active. Bus contention is avoided when the peripheral uses BSTB to gate
input data onto the bus. The PIO uses the BSTB low level to latch this data.
The data can be disabled from the bus immediately after the strobe rising
edge. This is because the PIO has been designed with a zero hold time
requirement for the data when latching in this mode. This gating structure
can be used by the peripheral.
Φ
WR*
ARDY
ASTB
Port A
Data Bus
INT
Data Out
Data In
Sample
BSTB
BRDY
WR* = RD • CE • C/D • IORQ
Figure 9. Port A, Mode 2 (Bidirectional) Timing
Control Mode (Mode 3)
The control mode does not utilize the handshake signals, therefore a normal
port write or port read can be executed at any time. When writing, the data
is latched to output registers with the same timing as Mode 0. ARDY is
forced low whenever Port A is operated in Mode 3. BRDY is held Low
whenever Port B is operated in Mode 3 unless Port A is in Mode 2. In the
latter case, the state of BRDY is not affected.
UM008101-0601
Parallel Input/Output