beautypg.com

Zilog Z08470 User Manual

Page 223

background image

< %27 2GTKRJGTCNU

7UGT /CPWCN

UM008101-0601

Parallel Input/Output

If a sensor puts a High level on lines A5, A3, or A0, an interrupt request is
generated. The mask word may select any combination of inputs or
outputs to cause an interrupt. For example, if the mask word above is:

then an interrupt request would also occur if bit A7 (Special Test) of the
output register was set.

Assume that the following port assignments are to be used:

E0H = Port A Data

E1H = Port B Data

E2H = Port A Control

E3H = Port B Control

All port numbers are in hexadecimal notation. This particular assignment of
port numbers is convenient because A0 of the address bus can be used as
the Port B/A Select and A1 of the address bus can be used as the Control/
Data Select. The Chip Enable is the decode of CPU address bits A7 through
A2 (

111000

).

Note: When only a few peripheral devices are being used, a Chip Enable
decode may not be required because a higher order address bit may be
used directly.

Selects A5, A3, and A0 to be Monitored

0

1

D7

D6

D5

D4

D3

D0

D2

D1

0

1

1

0

1

1

0

1

D7

D6

D5

D4

D3

D0

D2

D1

0

1

1

0

0

1

This manual is related to the following products: