Interfacing With IO System
Interfacing With IO System
Prepared By:-
MD. IFTEKHARUL ISLAM SAKIB
Lecturer, Department of CSE, BUET
Md. Saiful Islam
Lecturer,
Department of CSE, BUET
E-mail: [email protected]
[email protected]
Mobile: 01516-156486
Office: Room No: 212,
ECE Building, West Palashi, BUET
The Intel Microprocessors
Author: Barry B. Brey
Edition: Eighth Edition
Informal Definition
i) The physical, electrical and logical means of exchanging
Information with a functional module
ii) The process of enabling a computer to communicate with the
external world through Software, Hardware and Protocols
• An interface is a device and/or set of rules to match the output of
one device to send information to the input of another device
• physical connection
• the hardware
• rules and procedures
• the software
Limitations ?
SIMPLE STROBE I/O
Example
Reading from Keyboard STB
Limitations ?
Data
SIMPLE STROBE I/O LIMITATIONS
Assumption
CPU Sender: Receiver is always ready
STB
ACK
Data
SINGLE-HANDSHAKE I/O LIMITATIONS
ACK
Data
HOW TO IMPLEMENT HANDSHAKE?
The simplest idea
Directly connect the CPU to the I/O devices
CPU determines when it is time to send/receive next data byte
Polling
Interrupt (Better??)
24 input/output pins
3 PORTS: A, B, C
Port A, B: I/O
Port C: I/O and handshake signals
𝐂𝐒 A1 A0 SELECTEDPORT
0 0 0 A
0 0 1 B
0 1 0 C
0 1 1 Control Register