An in-depth exploration of various input/output devices, including keyboards, text terminals, mice, printers, network interfaces, and hard drives. It covers their functions, levels, examples, and specifications. Students will gain a comprehensive understanding of these devices and their roles in computer systems.
Download Exploring Input/Output Devices: Keyboards, Terminals, Mice, Printers, Networks, and Drives and more Study notes Computer Science in PDF only on Docsity!
Input / OutputInput / Output
November 27November 27
CSC201 Section 002
Fall, 2000
Why Study? Why Study?
Device drivers are an essential part of operating systems
Drivers impact performance of I/O
Drivers impact what devices can be used
Levels Levels
Hardware
Devices
Controllers
Buses
Operating system
Device drivers
File Management
Application programs
I/O procedure calls
Hardware Example Hardware Example
Keyboards Keyboards
Pass the entire sequence of key presses and releases to the interrupt service routine
Key press and key release: pass the event and key number to the CPU (called a scan code) - translating to an ASCII code: table lookup
Example: capital-A
Keyboards Keyboards
"Cooked" mode
The operating system buffers characters and passes them to the application program only when end-of- line is detected
Also processes back space and line-kill characters
No buffering: "raw" mode
Echoing characters
The operating system or user program can output characters to the display as they are typed
Bit- Bit-Map TerminalsMap Terminals
3 bytes per Pixel: R, G, and B
Large chunk of memory needed to store contents of screen - 3 bytes * 1024 * 768 = 2,359,296 bytes of memory
Graphics card has a co-processor for handling common graphics operations - line drawing, filled shape drawing, scrolling, etc.
Mouse Mouse
Usually sends a 3-byte code
x movement since last update
y movement since last update
state of the buttons
Network Interface Network Interface
Ethernet = local area network
Speeds: 10 Mb/s, 100 Mb/s, and 1 Gb/s
Structure of Hard Drives Structure of Hard Drives
One or more platters rotating around a spindle - data stored (magnetically) on surface
Each surface has a read/write head
Platter organized into concentric rings called tracks
Each track subdivided into fixed- size blocks called sectors - ex.: 512 bytes/sector
Reading/Writing a Sector Reading/Writing a Sector
Given: track and sector numbers
Platters are constantly spinning at a fixed speed
Read/write head moves to the correct cylinder; "seek time" - typical: 5-15 ms.
Wait until sector rotates under the head; "rotational latency" - rotational speeds of 5,000-12,000 RPM - typical: 2-8 ms.
Time for sector to rotate past head; "read/write time" - typical: 20-100 microsec.
Block- Block-OrientedOriented
An entire block is written at one time
Individual characters are written to a buffer
When buffer is full, sector is written
DVD- DVD-ROMsROMs
Capacity = 4.7 GB
Up to 133 minutes of 720x480 video with high-quality audio