
UM008101-0601 Parallel Input/Output
Control Interface
A typical control mode application is illustrated in Figure 16. In this
example, an industrial process is to be monitored. The occurrence of any
abnormal operating condition is to be reported to a Z80 CPU-based control
system. The process control and status word has the following format:
The PIO may be used as follows. First, Port A is set for Mode 3 operation
by writing the following control word to Port A.
Whenever Mode 3 is selected, the next control word sent to the port must
be an I/O select word. In this example, port data lines A5, A3, and A0 are
selected as inputs, and the following control word is written:
Next, the appropriate interrupt vector must be loaded (refer to the Z80 CPU
User’s Manual for details):
An interrupt control word is next sent to the port:
The mask word following the interrupt mode word is:
D7 D6 D5 D4 D3 D0
Halt
Processing
D2 D1
Special
Test
Turn On
Power
Power
Failure Alarm
Te m p.
Alarm
Turn On
Heaters
Pressurize
System
Pressure
Alarm
11XX
D7
D6 D5 D4 D3 D0D2 D1
11 11
001 0
D7
D6 D5 D4 D3 D0D2 D1
10 01
V5 V4
D7
D6 D5 D4 D3 D0D2 D1
V3 V2 V1 0V1 V6
Interrupt Control
11
D7 D6 D5 D4 D3 D0D2 D1
01 11
10
Enable
Interrupts
OR
Logic
Active
High
Mask
Follows
Kommentare zu diesen Handbüchern