Professional Documents
Culture Documents
INTERFACE CIRCUITS
An I/O interface does the following:
My-Address
RS2 C1
RS1 Status and
RS0 Register
R/W select control C2
Ready
Accept
INTR
PARALLEL PORT
Data lines P7 through P0 can be used for either input or output
purposes.
The DATAOUT register is connected to these lines via three-state
drivers that are controlled by a data direction register, DDR.
The processor can write any 8-bit pattern into DDR.
For a given bit, if the DDR value is 1, the corresponding data line acts
as an output line; otherwise, it acts as an input line.
Two lines C1 and C2, are provided to control the interaction between
the interface circuit and the I/O device it serves.
PARALLEL PORT
These lines are also programmable.