Professional Documents
Culture Documents
ARCHITECTURE
By Truc Truong
Input Devices
Keyboard
Mouse
Scanner
CD-Rom
Game Controller
Output Devices
Monitor
Printers
Disk Drive
Floppy Drive
CDRW-Rom
Speakers
Modem
Network Interface Card
Portable zip drives
Modem
What is a modem
Synchronous
Asynchronous
Cpu Communication
1) Command Decoding : Like read/write seek etc.
Data
Exchange between CPU and Module. Status
reporting to CPU, since
peripherals are slow. Address recognition for the
devices connected
to it.
2) Device Communication : This may involves
command, status
information and data transfer.
3) Data Buffering : Essential function to overcome
speed mismatch.
4) Error Detection : Like paper jam, bad data etc.
INPUT/OUTPUT MODULE
STRUCTURE
TECHNIQUES OF I/O
1) Programmed I/O : The CPU issues a command then waits for
I/O
operations to be complete. The CPU is faster than the I/O module
2)
3)
4)
5)
INPUT/OUTPUT
CONTROLLERS
Design Issues:
There will be multiple devices that
will generate interrupt signals.
Consider the following when
designing the I/O controllers
1) How does CPU knows which device
has interrupted?
2) In case of multiple interrupt, which
request is to be
serviced?
Programmed I/O
The code in the OS for Programmed I/O be more like:
keyboard_wait:
; for get_ch
test Keyboard_Status, 80000000h
jz keyboard_wait
mov eax, Keyboard_Data
and
display_wait:
; for put_ch
test Display_Status, 80000000h
jz display_wait
mov Display_Data, eax
This scheme is known as BUSY WAITING, or SPIN WAITING.
The little loop is called a SPIN WAIT LOOP.
Interrupts
Based on priorty
Some unmaskable
Interrupt Processing
DMA Transfer
Serial
In band signaling
Bit oriented
Bit/byte word translation
Parallel
Serial Transfer
Asynchronous Clocking
Synchronous clocking
Independent clocking
Verification by synchronization pattern
Parallel Transfer
Data transfer
Control
Read sector
Write sector
Disk seek
Transfer Integrity
Transfer parity
Data encoding