Lesson - 6:: Lesson - 6: Parallel Port at Devices
Lesson - 6:: Lesson - 6: Parallel Port at Devices
λ 8-bit IOs
λ Short distances, generally within a
circuit board or IC or nearby external
devices
IORD
Ai-Aj
Port
Addresses An Output Port
Decoder BRo
CS O0-O7
Processor LCD Display
IOWR
An I/O Port
BRi
IO0-IO7
IORD Modem
BRo
Messages
Note:
A Port can have 1 or 2 IOWR
or more Addresses
Allotted for it and Address Bus Inputs also (a)
Chapter-3 L06: "Embedded Systems - " , Raj Kamal,
2008 6
Publs.: McGraw-Hill Education
Handshaking signals to and from an external
peripheral device for input at port
λ Device makes a strobe request to port,
STROBE after it is ready to send the
byte and
λ System I/O port sends the
acknowledgement, PORT READY.
λ System I/O port receives data in buffer
and then issues an interrupt signal, INT
to processor to enable an ISR
execution
Chapter-3 L06: "Embedded Systems - " , Raj Kamal,
2008 7
Publs.: McGraw-Hill Education
Handshaking signals to and from an external
device for output at port
λ Device sends the message
ACKNOWLEDGE when and the I/O
device port ends the BUFFER FULL
signal to inform that the is buffer full.
λ The processor is sent the INTERRUPT
REQUEST message, when the
transmitting-buffer is empty (available
for next write)
Chapter-3 L06: "Embedded Systems - " , Raj Kamal,
2008 8
Publs.: McGraw-Hill Education
Port Interrupt to processor
λ STROBE
λ PORT READY
λ BUFFER-FULL
λ ACKNOWLEDGE
λ INTERRUPT REQUEST
1
CS
Strobe Request
Control Input
IORD
Signals 2
IOWR Port Ready
4 0
1
D0-D7 Buffer Full
Data Bus
output
2
Acknowledge
3
Interrupt
Request
(b)
Chapter-3 L06: "Embedded Systems - " , Raj Kamal,
2008 11
Publs.: McGraw-Hill Education
Parallel port at IBM PC using 25 pins connector
λ 8 I/O pins
λ 8 ground pins− (pins at 0 V)
λ Status pins and control pins −for handshaking
λ 5 input pins for status signals (four active high
S3 to S6, one active low S7) from external
device (for example, printing device)
λ 4 output pins for control signals (one active
high C2 and three active low C0, C1 and C3